Re: Question -- Session Operations - Feasibility Of Proposed Synchronization Method?

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Question -- Session Operations - Feasibility Of Proposed Synchronization Method?
Дата
Msg-id 56899565.9080607@hogranch.com
обсуждение исходный текст
Ответ на Re: Question -- Session Operations - Feasibility Of Proposed Synchronization Method?  (Melvin Davidson <melvin6925@gmail.com>)
Список pgsql-general
On 1/3/2016 1:32 PM, Melvin Davidson wrote:
> As others have pointed out, storing session data in a table is not a
> good idea. Even if you use TRUNCATE, you will still not reclaim all
> the space used unless you use vacuum full. More to the point, if you
> absolutely must store session data, then why not just do it in a
> TEMPORARY table, which will reside in memory and clean itself up when
> the session ends?

The fundamental problem is that HTTP itself is stateless, and user
sessions have to be enforced by the web app, with the aid of browser
cookies.   you can't simply directly link a http connection to a SQL
connection and assume thats a session.

--
john r pierce, recycling bits in santa cruz



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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Question -- Session Operations - Feasibility Of Proposed Synchronization Method?
Следующее
От: Gerdan Rezende dos Santos
Дата:
Сообщение: 2 tuples to same chunk in toast table