SQLite or files?

Aahz aahz at pythoncraft.com
Fri Sep 18 07:08:31 CEST 2009


In article <mailman.30.1253183180.2807.python-list at python.org>,
Tim Chase  <python.list at tim.thechases.com> wrote:
>
>- I don't know if you're currently keeping the RTF in memory the 
>whole time, or if you repeatedly reload (whether in one go, or 
>streaming it) and reparse the file.  This sounds memory and/or 
>processor intensive.  Using sqlite, the processing is done at the 
>C-module level, the data is kept on disk and only brought into 
>memory as-requested, being released when you're done with it.

You can also make a SQLite database be in-memory, giving you the
performance benefits of skipping the disk.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"I won't accept a model of the universe in which free will, omniscient
gods, and atheism are simultaneously true."  --M



More information about the Python-list mailing list