Page MenuHomePhabricator

implement meaningful notion of size for items
Open, LowPublic

Description

currently, an items size is the size of the item's json represenations. It would be more useful to count the number of characters in values or some such. In that case, empty items would have size 0, adding one character to a label would make a size difference of 1, etc.


Version: master
Severity: normal
Whiteboard: u=dev c=backend p=0
See Also:
T41150: [Story] Create Special:EmptyItems

Details

Reference
bz39189

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:06 AM
bzimport set Reference to bz39189.
bzimport added a subscriber: Unknown Object (MLST).

The byte size does not make sense as it represents the internal structure more than anything user-facing.

  • Bug 37753 has been marked as a duplicate of this bug. ***
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher lowered the priority of this task from Medium to Low.Mar 17 2015, 12:43 PM

The only notion of size that makes sense to me is counting separately statements, claims, qualifiers, references, labels, descriptions, aliases and sitelinks.

If we really need to summarize, we could count only "structured data" (number of claims + number of qualifiers), "docstrings" (number of labels + number of descriptions + number of aliases) and sitelinks.

Anyway, I wonder if this task, very old, has been already resolved somehow.