Re: Storing many big files in database- should I do it?
От
John R Pierce
Тема
Re: Storing many big files in database- should I do it?
Дата
Msg-id
4BD6A637.8030902@hogranch.com
Ответ на
Список
Дерево обсуждения
Storing many big files in database- should I do it? Rod <cckramer@gmail.com>
Re: Storing many big files in database- should I do it? John R Pierce <pierce@hogranch.com>
Re: Storing many big files in database- should I do it? Rod <cckramer@gmail.com>
Re: Storing many big files in database- should I do it? "Massa, Harald Armin" <chef@ghum.de>
Re: Storing many big files in database- should I do it? Rod <cckramer@gmail.com>
Re: Storing many big files in database- should I do it? Cédric Villemain <cedric.villemain.debian@gmail.com>
Re: Storing many big files in database- should I do it? Adrian von Bidder <avbidder@fortytwo.ch>
Re: Storing many big files in database- should I do it? Anthony <osm@inbox.org>
Re: Storing many big files in database- should I do it? Adrian Klaver <adrian.klaver@gmail.com>
Re: Storing many big files in database- should I do it? Cédric Villemain <cedric.villemain.debian@gmail.com>
Re: Storing many big files in database- should I do it? David Wall <d.wall@computer.org>
Re: Storing many big files in database- should I do it? Justin Graf <justin@magwerks.com>
Re: Storing many big files in database- should I do it? Scott Ribe <scott_ribe@killerbytes.com>
Re: Storing many big files in database- should I do it? Alvaro Herrera <alvherre@commandprompt.com>
Re: Storing many big files in database- should I do it? Tom Lane <tgl@sss.pgh.pa.us>
Re: Storing many big files in database- should I do it? Justin Graf <justin@magwerks.com>
Re: Storing many big files in database- should I do it? Guillaume Lelarge <guillaume@lelarge.info>
Re: Storing many big files in database- should I do it? David Wall <d.wall@computer.org>
Re: Storing many big files in database- should I do it? Justin Graf <justin@magwerks.com>
Re: Storing many big files in database- should I do it? Merlin Moncure <mmoncure@gmail.com>
Rod wrote: > Hello, > > I have a web application where users upload/share files. > After file is uploaded it is copied to S3 and all subsequent downloads > are done from there. > So in a file's lifetime it's accessed only twice- when created and > when copied to S3. > > Files are documents, of different size from few kilobytes to 200 > Megabytes. Number of files: thousands to hundreds of thousands. > > My dilemma is - Should I store files in PGSQL database or store in > filesystem and keep only metadata in database? > > I see the possible cons of using PGSQL as storage: > - more network bandwidth required comparing to access NFS-mounted filesystem ? > - if database becomes corrupt you can't recover individual files > - you can't backup live database unless you install complicated > replication add-ons > - more CPU required to store/retrieve files (comparing to filesystem access) > - size overhead, e.g. storing 1000 bytes will take 1000 bytes in > database + 100 bytes for db metadata, index, etc. with lot of files > this will be a lot of overhead. > > Are these concerns valid? > Anyone had this kind of design problem and how did you solve it? > S3 storage is not suitable for running a RDBMS. An RDBMS wants fast low latency storage using 8k block random reads and writes. S3 is high latency and oriented towards streaming
В списке pgsql-general по дате отправления