Last modified: 2014-09-25 12:34:44 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T56025, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54025 - Do not store empty array in json of wikidata items
Do not store empty array in json of wikidata items
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
REL1_21-branch
All All
: Low minor (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-11 18:33 UTC by db [inactive,noenotif]
Modified: 2014-09-25 12:34 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description db [inactive,noenotif] 2013-09-11 18:33:31 UTC
Edits after the last update on existing items will increase the size of the item, because now there are '"badges":[]' in it. Thats maybe a migration from old items, but this will contribute byte differences to a user, which maybe only changed one byte in that and makes a list with byte differences useless.

Maybe there is need to migrate the json format, but there is no need to story empty arrays in the json written to database (That also applied to "refs":[] on claims).
Comment 1 db [inactive,noenotif] 2013-10-17 16:33:58 UTC
Would still be nice to store the json in a minified version, that means all unneeded json structure like empty arrays get removed before save.

This saves space on the database and on dumps, that means also lower network connection, because dumps will go to third parties.

And the confusiong byte difference for items which gets first edited after the badges was added to json will gone away.

So please try to store the only needed parts of the json. Thanks.
Comment 2 Lydia Pintscher 2014-09-25 12:34:44 UTC
The whole structure changed so the byte difference is there no matter what. The difference of the changes besides that is minimal and intended.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links