Closed Bug 609713 Opened 16 years ago Closed 16 years ago

Remove collection counts from main get_collections call; optimize that call

Categories

(Cloud Services Graveyard :: Server: Sync, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: telliott, Assigned: telliott)

Details

(Keywords: push-needed, Whiteboard: [qa-])

Attachments

(1 file)

atoll has proposed a better query for getting collections with timestamps. Since we're not using collection counts at all at this point, no reason to store them in memcache and we can try this query instead.
Assignee: nobody → telliott
One remark about collections_update(). If $modified is null, we should not call collection_set() at the end of the function. OTOH, that function is always called with a value for $modified, so we could simplify it to: function collections_update($collection, $modified) { $this->collections_get(); $this->_collections[$collection][0] = $modified; $this->collections_set(); }
Attachment #488306 - Flags: review?(tarek) → review+
I don't think it's actually possible for $modified to be null, so the latter option makes sense.
Status: NEW → RESOLVED
Closed: 16 years ago
Keywords: push-needed
Resolution: --- → FIXED
Whiteboard: [qa-]
Product: Cloud Services → Cloud Services Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: