Closed Bug 101496 Opened 24 years ago Closed 16 years ago

Use relative bug numbers for storing 'last query' info.

Categories

(Bugzilla :: Query/Bug List, enhancement, P4)

Other
Other
enhancement

Tracking

()

RESOLVED WONTFIX

People

(Reporter: caillon, Unassigned)

Details

Currently, the "BUGLIST" cookie that gets stored uses colon delimited bug numbers. Instead of using bug numbers, it would be far more efficient to store only the first bug number and store the rest as relative bug numbers. For example, first 10 the bugs in my last query (All bugs reported today) are: 101281:101282:101283:101285:101287:101288:101289:101290:101291:101292 This can be shortened to: 101281:1:2:4:6:7:8:9:10:11 In the worst case scenario, where the first bug listed is # 1 we won't be any worse off than we are now, with a potential for saving a few bytes here and there (bug 100 will be expressed as 99, 1000 as 999, etc). Advantages to this include increasing Bugzilla's "little mind" and reducing HTTP transmission time for the average case. It will take less time to send the cookie and less time for the browser to send it back. Also on a semi-related point, why do we delimit that cookie with colons and not commas? From discussion on IRC, we also need to figure out if we are going to continue to store this data in a cookie or in a new DB table/column. DB storage seems likely but if it isn't going to happen anytime soon, this could be worthwhile to get done before that happens, IMO at least.
Hmm, why not be more ambitious? This only uses ten different characters. Why not use hexadecimal, base 36, or even all printable characters? Or why not pack a bunch of 4-byte integers together, do differential huffman compression, and map onto the printable characters?
Priority: -- → P4
Target Milestone: --- → Future
Assignee: endico → nobody
QA Contact: mattyt-bugzilla → default-qa
Target Milestone: Future → ---
Assignee: nobody → query-and-buglist
Instead of doing this, we're just going to stop using cookies to store bug lists and store them in the database instead.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.