Re: PDF files: to store in database or not
От
Eric Schwarzenbach
Тема
Re: PDF files: to store in database or not
Дата
Msg-id
ef011181-3f8d-9547-94c8-39e88b9ce9fa@blackbrook.org
Ответ на
Re: PDF files: to store in database or not (Joshua D. Drake)
Список
Дерево обсуждения
PDF files: to store in database or not Rich Shepard <rshepard@appl-ecosys.com>
Re: PDF files: to store in database or not "Joshua D. Drake" <jd@commandprompt.com>
Re: PDF files: to store in database or not Eric Schwarzenbach <subscriber@blackbrook.org>
Re: PDF files: to store in database or not "Joshua D. Drake" <jd@commandprompt.com>
Re: PDF files: to store in database or not Eric Schwarzenbach <subscriber@blackbrook.org>
Re: PDF files: to store in database or not David Wall <d.wall@computer.org>
Re: PDF files: to store in database or not "Joshua D. Drake" <jd@commandprompt.com>
Re: PDF files: to store in database or not John R Pierce <pierce@hogranch.com>
Re: PDF files: to store in database or not Rich Shepard <rshepard@appl-ecosys.com>
Re: PDF files: to store in database or not John R Pierce <pierce@hogranch.com>
Re: PDF files: to store in database or not Tom Lane <tgl@sss.pgh.pa.us>
Re: PDF files: to store in database or not David Wall <d.wall@computer.org>
Re: PDF files: to store in database or not John R Pierce <pierce@hogranch.com>
Re: PDF files: to store in database or not Rich Shepard <rshepard@appl-ecosys.com>
Re: PDF files: to store in database or not Rich Shepard <rshepard@appl-ecosys.com>
Re: PDF files: to store in database or not Moreno Andreo <moreno.andreo@evolu-s.it>
Re: PDF files: to store in database or not "Joshua D. Drake" <jd@commandprompt.com>
Re: PDF files: to store in database or not "Joshua D. Drake" <jd@commandprompt.com>
Re: PDF files: to store in database or not Eric Schwarzenbach <subscriber@blackbrook.org>
Re: PDF files: to store in database or not John DeSoi <desoi@pgedit.com>
Re: PDF files: to store in database or not Rich Shepard <rshepard@appl-ecosys.com>
Re: PDF files: to store in database or not Adrian Klaver <adrian.klaver@aklaver.com>
Re: PDF files: to store in database or not Rich Shepard <rshepard@appl-ecosys.com>
Re: PDF files: to store in database or not Chris Travers <chris.travers@gmail.com>
Re: PDF files: to store in database or not John DeSoi <desoi@pgedit.com>
Re: PDF files: to store in database or not Rich Shepard <rshepard@appl-ecosys.com>
On 12/06/2016 02:40 PM, Joshua D. Drake wrote: > On 12/06/2016 11:12 AM, Eric Schwarzenbach wrote: >> On 12/06/2016 01:34 PM, Joshua D. Drake wrote: >>> On 12/06/2016 10:30 AM, Rich Shepard wrote: >>> >>>> My thinking is to not store these documents in the database, but to >>>> store >>>> them in subdirectories outside the database. >>>> >>>> Your thoughts? >>> >>> Due to the widely variable size of a PDF document, I would say no. I >>> would store the metadata and file location. >>> >>> >> Can you elaborate on this? Why is the variable size an issue? > > Because it will use at least that size in memory to deliver the > document to you. Consider a 100MB PDF (not at all uncommon), now > imagine 40 connections requesting that PDF. > Are you sure the whole thing necessarily gets pulled into memory? JDBC and ODBC support streaming on their BLOB interfaces and isn't the whole point of this that an application can stream large files a chunk at a time, the same way it would from the file system? Of course if the db engine always pulls the whole thing into memory to work with it regardless of the API, that's another thing, but that wouldn't seem like a very good design, and I have more faith in the PostgreSQL developers than that...but I'd certainly like to know for sure. Cheers, Eric
В списке pgsql-general по дате отправления