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)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: telliott, Assigned: telliott)
Details
(Keywords: push-needed, Whiteboard: [qa-])
Attachments
(1 file)
|
5.28 KB,
patch
|
tarek
:
review+
|
Details | Diff | Splinter Review |
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 | ||
Comment 1•16 years ago
|
||
Attachment #488306 -
Flags: review?(tarek)
| Assignee | ||
Updated•16 years ago
|
Assignee: nobody → telliott
Comment 2•16 years ago
|
||
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();
}
Updated•16 years ago
|
Attachment #488306 -
Flags: review?(tarek) → review+
| Assignee | ||
Comment 3•16 years ago
|
||
I don't think it's actually possible for $modified to be null, so the latter option makes sense.
| Assignee | ||
Comment 4•16 years ago
|
||
Updated•16 years ago
|
Whiteboard: [qa-]
Updated•3 years ago
|
Product: Cloud Services → Cloud Services Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•