Slow inserting
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:
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
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 /bugs.launchpad .net/storm/ +bug/253922
2) The SQLite backend of Storm is not particularly well optimized, see https:/