eppye-bots / bots

Automatically exported from code.google.com/p/bots
66 stars 126 forks source link

Performance: making of plugin can take a long time #284

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Some people use very big ccode table.
Generating a plugin can get quite slow.
This can be annoying, especially because for soem actions a backup plugin is 
written.
1. made a change to use faster logic in generating index file.
2. option in bots.ini to not write ccode list in backup plugins
3. django's serialize function takes lot of time. This may be improved, but 
there is a problem with partners/partergroup tables. Partnergroup table is now 
not explicit in models.py. This would need a lot of testing.

Original issue reported on code.google.com by hjebb...@gmail.com on 15 Jan 2014 at 2:41

GoogleCodeExporter commented 9 years ago
Generatin plugin with MySQL might be slower.
Tested this with ccode table with over 143000 entries.
MySQL: 25sec
SQLite about same time.
Think this is reasonable, especially if you have the option not to include 
ccode table in backup plugin.

Original comment by hjebb...@gmail.com on 15 Jan 2014 at 2:52

GoogleCodeExporter commented 9 years ago

Original comment by hjebb...@gmail.com on 10 Sep 2014 at 2:52