Slow inserting

Bug #386946 reported by Seif Lotfy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zeitgeist Framework
Fix Released
High
Mikkel Kamstrup Erlandsen
0.3
Fix Released
Undecided
Unassigned

Bug Description

An average of 2.5 seconds per 200 entries is unacceptable

Creating database... sqlite:stormtest.sqlite
Starting Zeitgeist service...
Updating database with new Documents items
>>>>>> Inserted 1 items in 0.0431048870087s
>>>>>> Inserted 32 items in 0.398054122925s
Updating database with new Images items
>>>>>> Inserted 1 items in 0.0422050952911s
>>>>>> Inserted 200 items in 2.46073818207s
>>>>>> Inserted 200 items in 2.48012709618s
>>>>>> Inserted 200 items in 2.60040402412s
>>>>>> Inserted 56 items in 0.773358106613s
Updating database with new Music items
Updating database with new Other items
>>>>>> Inserted 1 items in 0.0687749385834s
>>>>>> Inserted 14 items in 0.209239006042s
Updating database with new Videos items
>>>>>> Inserted 1 items in 0.0551328659058s
>>>>>> Inserted 2 items in 0.0482969284058s
Updating database with new Development items
>>>>>> Inserted 1 items in 0.0713491439819s
>>>>>> Inserted 44 items in 0.594656944275s

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

This bug has two causes:

1) We do a lot of SQL calls (often impliticitely via Storm) for inserting a single item, we should cut drastically down on these
2) The SQLite backend of Storm is not particularly well optimized, see https://bugs.launchpad.net/storm/+bug/253922

Changed in zeitgeist:
assignee: nobody → Mikkel Kamstrup Erlandsen (kamstrup)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

I marked this bug as "Fix released" - insertion is relatively fast on the querymancer backend. It can probably be at least twice as fast, but I don't see that it is worthwhile shooting a lot of time after that right now. Query time is a lot more important.

Changed in zeitgeist:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.