Note that there are some explanatory texts on larger screens.

plurals
  1. POLow memory and fastest querying database for a Python project
    primarykey
    data
    text
    <p>I'm migrating a GAE/Java app to Python (non-GAE) due new pricing, so I'm getting a little server and I would like to find a database that fits the following requirements:</p> <ul> <li>Low memory usage (or to be tuneable or predictible)</li> <li>Fastest querying capability for simple document/tree-like data identified by key (I don't care about performance on writing and I assume it will have indexes)</li> <li>Bindings with Pypy 1.6 compatibility (or Python 2.7 at least)</li> </ul> <p>My data goes something like this:</p> <ul> <li>Id: short key string</li> <li>Title</li> <li>Creators: an array of another data structure which has an id - used as key -, a name, a site address, etc.</li> <li>Tags: array of tags. Each of them can has multiple parent tags, a name, an id too, etc.</li> <li>License: a data structure which describes its license (CC, GPL, ... you say it) with name, associated URL, etc.</li> <li>Addition time: when it was add in our site.</li> <li>Translations: pointers to other entries that are translations of one creation.</li> </ul> <p>My queries are very simple. Usual cases are:</p> <ul> <li>Filter by tag ordered by addition time.</li> <li>Select a few (pagination) ordered by addition time.</li> <li>(Maybe, not done already) filter by creator.</li> <li>(Not done but planned) some autocomplete features in forms, so I'm going to need search if some fields contains a substring ('LIKE' queries).</li> </ul> <p>The data volume is not big. Right now I have about 50MB of data but I'm planning to have a huge dataset around 10GB.</p> <p>Also, I want to rebuild this from scratch, so I'm open to any option. What database do you think can meet my requirements?</p> <p>Edit: I want to do some benchmarks around different options and share the results. I have selected, so far, MongoDB, PostgreSQL, MySQL, Drizzle, Riak and Kyoto Cabinet.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload