if the problem was so simple, I guess Carl would not have asked the question in the first place.
there could be one sqlite db file for each day, week or month (1TB over 365 days). Something like partitioning on date dimension.
Actually, sqlite scales well up to 2 TB so it's not so *unwonderfull* idea even using one file per year (especially on XFS file system).
I would use postgres + sqlite as image storing engine.
"...but is must be searchable, andÂany documentÂmust be retrieved within 1 hour..." - this is not bleeding edge requirement, so I would use filesystem if this was 10 sec or something, but having 1 hour timeframe would definitely made me choose db over filesystem.
Esmin.
On Sat, Jun 4, 2011 at 12:44 AM, John R Pierce <pierce@xxxxxxxxxxxx> wrote:
On 06/03/11 3:09 PM, Esmin Gracic wrote:a single multi-terabyte file? Â Âwhat a *wonderful* idea. Â*NOT*
another option is using sqlite for storing images. All data is in single file. (or files if you organize it that way) easier backup etc... you have some db benefits and retaining solid speed vs file system. Haven't used this, but seems as viable option to explore.
--Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general