need advices... accessing a huge collection

Paul Rubin http
Thu Oct 23 13:43:49 EDT 2003


"GrelEns" <grelens at NOSPAMyahoo.NOTNEEDEDfr> writes:
> i also was wondering which is fastest :
> - upon each user request, re-building a dictionary from reading key/value
> from a file,
> - or on the first request building a hard-coded python dictionary and then
> importing it,
> - or maybe other suggestions (storing in a database...) ?

If the tar files are static (not being updated), simplest thing is use
dbm to store the dictionary.




More information about the Python-list mailing list