Speed up loading items with many (entity) annotations #2830

Closed
opened 2015-09-09 14:32:21 +00:00 by wjt · 3 comments

In the latest chapter of this developing saga, here's a pair of patches which makes a visible difference to loading big scenes:

  1. use select_related('user') for items, just like (static) edits.
  2. cache serialized entities for the common case where many annotations reference the same entity. This patch is a bit more questionable, I think you'd be totally justified in asking me to go away and actually fix the schema :-)
In the latest chapter of this developing saga, here's a pair of patches which makes a visible difference to loading big scenes: 1. use select_related('user') for items, just like (static) edits. 2. cache serialized entities for the common case where many annotations reference the same entity. This patch is a bit more questionable, I think you'd be totally justified in asking me to go away and actually fix the schema :-)
j added the
general
label 2015-09-09 14:32:21 +00:00
j added this to the 14.04 milestone 2015-09-09 14:32:21 +00:00
0x2620 was assigned by j 2015-09-09 14:32:21 +00:00
j added the
normal
defect
labels 2015-09-09 14:32:21 +00:00
Author

Attachment 0001-Combine-Item-Clip-edit.Clip-.get_layers.patch (6062 bytes) added

**Attachment** 0001-Combine-Item-Clip-edit.Clip-.get_layers.patch (6062 bytes) added
Author

Attachment 0002-Cache-serialized-entities-when-fetching-many-annotat.patch (4877 bytes) added

**Attachment** 0002-Cache-serialized-entities-when-fetching-many-annotat.patch (4877 bytes) added
Owner

fixed in []changeset:pandora,5020

fixed in []changeset:pandora,5020
j added the
fixed
label 2015-09-14 12:10:56 +00:00
j closed this issue 2015-09-14 12:10:56 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: 0x2620/pandora#2830
No description provided.