Re: PDF files: to store in database or not

Поиск
Список
Период
Сортировка
От Joshua D. Drake
Тема Re: PDF files: to store in database or not
Дата
Msg-id 40bd3965-0b52-c8e7-6d6a-fd44733454eb@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
Список pgsql-general
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.


Sincerely,

JD


--
Command Prompt, Inc.                  http://the.postgres.company/
                         +1-503-667-4564
PostgreSQL Centered full stack support, consulting and development.
Everyone appreciates your honesty, until you are honest with them.
Unless otherwise stated, opinions are my own.


В списке pgsql-general по дате отправления:

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: PDF files: to store in database or not
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: PDF files: to store in database or not