Re: High memory usage / performance issue ( temp tables ? )

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: High memory usage / performance issue ( temp tables ? )
Дата
Msg-id CAFj8pRDjpaJDKWVm7gMuA-TMuMBjZYPKTB6CR3GJtv9ysqb+vw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: High memory usage / performance issue ( temp tables ? )  (gmb <gmbouwer@gmail.com>)
Ответы Re: High memory usage / performance issue ( temp tables ? )  (gmb <gmbouwer@gmail.com>)
Re: High memory usage / performance issue ( temp tables ? )  (gmb <gmbouwer@gmail.com>)
Список pgsql-sql



2014-08-18 7:33 GMT+02:00 gmb <gmbouwer@gmail.com>:
Thanks for the replies.

I tried a couple of alternative methods over the weekend in the hope of
improving performance, but unfortunately to no avail.
One of these was to have the processing of the 500K xml files shared between
multiple threads ( multiple connections ).
In an attempt to "force" the dropping of the temp tables , each thread
creates its own connection, run the function with XML payload and the
disconnects.
The impression I got was that the avg time per transaction still increases
as the process progresses.

default temp_buffers = 8MB - so with ~ 10..20 clients all is done via IO, what is relative slow. Changes of system tables are not fast too on system with high load.
 

My one concern with this method was locking  , which I'm unfortunately quite
unfamiliar with.

Is it possible that locking could be a key problem when following this
multi-thread approach ?

You can write PostgreSQL extension in C - and store XML only in memory.

Temp tables are best when you do some queries or when you need indexes, but it is terrible slow cache.

else - Postgres is good as database and very slow as cache. It is good for prototyping and for less or middle load servers. For any other use different software

Maybe memcached,

Regards

Pavel
 

Regards

gmb



--
View this message in context: http://postgresql.1045698.n5.nabble.com/High-memory-usage-performance-issue-temp-tables-tp5815108p5815175.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.


--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql

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

Предыдущее
От: gmb
Дата:
Сообщение: Re: High memory usage / performance issue ( temp tables ? )
Следующее
От: Marcin Krawczyk
Дата:
Сообщение: Re: function call