Closed Bug 565411 Opened 14 years ago Closed 14 years ago

Sync 5000 most frecent pages instead of 1000 recent for first sync

Categories

(Firefox :: Sync, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: Mardak, Assigned: Mardak)

Details

(Keywords: relnote)

Attachments

(1 file, 1 obsolete file)

Some people aren't experiencing their awesomebar on synced devices.
Attached patch v1 (obsolete) — Splinter Review
Assignee: nobody → edilee
Status: NEW → ASSIGNED
Attachment #444941 - Flags: review?(mconnor)
Attached patch v1.1Splinter Review
limit to 30 recent days
Attachment #444941 - Attachment is obsolete: true
Attachment #444989 - Flags: review?(mconnor)
Attachment #444941 - Flags: review?(mconnor)
We're in heavy risk-mitigation mode here, so punting this to 2.0.  Very very much do want.
Target Milestone: --- → 2.0
Keywords: relnote
Comment on attachment 444989 [details] [diff] [review]
v1.1

Please make the limit a param (max_results) as with the cutoff date.  We may want to modify the initial upload for mobile clients, and we might as well give ourselves that flexibility now.
Attachment #444989 - Flags: review?(mconnor) → review+
http://hg.mozilla.org/labs/weave/rev/a3203e6bedfe
Use an async sql query to get uris by frecency instead of query result nodes, and wrap it with sync/async to keep the sync interface without blocking UI. Rough timings of getAllIDs: old 1k = 1.6sec blocking; old 5k = 2.7sec blocking; new 1k = .2sec non-block; new 5k = .6sec non-block. 

http://hg.mozilla.org/labs/weave/rev/7828087531c2
Accept max_results as a parameter to allow configuring the number of history items.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: 2.0 → 1.4
Sweet - this is awesome stuff, we get *more* data and take *less* time! Good work, Mardak!
Component: Firefox Sync: Backend → Sync
Product: Cloud Services → Firefox
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: