Re: Large Result and Memory Limit

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Large Result and Memory Limit
Дата
Msg-id dcc563d10710041324t780e4624y36dc1711b32222ff@mail.gmail.com
обсуждение исходный текст
Ответ на Large Result and Memory Limit  (Mike Ginsburg <mginsburg@collaborativefusion.com>)
Ответы Re: Large Result and Memory Limit  (Mike Ginsburg <mginsburg@collaborativefusion.com>)
Re: Large Result and Memory Limit  (Bill Moran <wmoran@potentialtech.com>)
Список pgsql-general
On 10/4/07, Mike Ginsburg <mginsburg@collaborativefusion.com> wrote:

> export it.  Memory limit is a major concern, but the query for one row
> returns a result set too large and PHP fails.

If this is true, and one single db row makes php exceed its memory
limit just by returning it, you've done something very very in your
design.

You'd proably be better served using either a plain text file system
to store these things, or large objects in postgresql.

But if you're stuffing ~8 megs worth of csv text data into a single
row* you're probably not using a very relational layout of your data.
And you're losing all the advantages (checking your data for
consistency and such) that a relational db could give you.

* Note that I'm assuming a few things up there.  1: php uses about 2:1
memory to store data it's holding, roughly.  If you're set to 16 Meg
max, I'm assuming your return set is 8Meg or larger.

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Large Result and Memory Limit
Следующее
От: Mike Ginsburg
Дата:
Сообщение: Re: Large Result and Memory Limit