Eevee
36fa8b7093
Fix a misuse of a set as a dictionary in db loading.
2011-04-10 18:51:03 -07:00
a_magical_me
bbb7cb9907
Make load.py more idiomatic.
...
Also snuck an idiom into db/__init__.py.
2011-04-03 04:26:45 -07:00
a_magical_me
9340f24ae4
load: Add --recursive option.
...
Helps somewhat with #526 (`pokedex load` is slow) by making it easier to
load only the tables you're interested in.
2011-04-03 03:17:08 -07:00
a_magical_me
b924a82236
Remove all uses of str.format().
...
For Python 2.5 compatibility.
2011-04-03 03:16:52 -07:00
Eevee
adbd3b628f
Fix pokedex load
with empty tables.
2011-04-03 01:23:48 -07:00
Petr Viktorin
3bfb7f0bb9
Update the comment for the Postgres version of pokedex load.
2011-04-01 16:08:56 -07:00
Petr Viktorin
3475c86d2e
Print progress for dropping/creating tables
2011-03-29 17:42:59 +03:00
Petr Viktorin
bb4861b8c6
Faster pokedex load
for PostgreSQL #526
...
Also added the -S (--safe) option, which disables the backend-specific
optimizations.
This gives over 3× speedup on my machine :)
2011-03-29 17:42:48 +03:00
Petr Viktorin
497ba412b0
Speed tweaks for pokedex load in SQLite
2011-01-27 21:51:30 -08:00
a_magical_me
febfb239fb
Python 2.5 compatibility
2010-05-25 14:41:15 -07:00
a_magical_me
ffc30bff8f
Factor out logic for finding the default db/index. #180
...
Note: `if not x:` has changed to `if x is not None:`, changing the
semantics slightly. Shouldn't be a big issue.
2010-05-13 21:45:51 -07:00
Eevee
25c81541ae
Use fnmatch for filenameish glob parsing.
2010-04-24 15:37:55 -07:00
Eevee
c9f32a8145
Loading big tables now shows a progress indicator. #180
2010-04-24 14:06:56 -07:00
Eevee
2204b95585
Overhauled CLI. #180
...
- Everything now accepts -i, -e, -q, and -v.
- Plumbing commands now announce what database/index they're using and
where they got them from.
- New command status, which does nothing but still does the announcing.
- New command reindex, which recreates only the whoosh index.
2010-04-24 14:06:56 -07:00
Eevee
c1c0225eb8
Optimized the fuck out of pokedex load
.
...
Major change was to skip the ORM entirely. Sped it up 500%.
2009-12-09 18:15:51 -08:00
Eevee
149b34b888
When loading Pokédex data, commit every 1000 rows.
...
Mostly done to fix RAM usage issues, but seems to have increased speed slightly.
2009-09-13 20:10:20 -07:00
Eevee
fd5e863eed
Added --quiet switch to dump/load.
2009-08-18 18:36:45 -07:00
Eevee
1a7d046fbc
Vastly improved the pokedex import/export UI.
...
csvimport is now load; csvexport is now dump.
Both take an optional -e switch to specify an engine, but will happily
use a default SQLite database in the pokedex package directory.
Additionally, the CSV directory is now controlled by the optional -d
switch, and defaults to Doing The Right Thing.
So `pokedex load` now does exactly what you'd expect: loads the data
from the right files into a consistently-located database.
2009-08-18 18:02:53 -07:00