From: | gmb <gmbouwer(at)gmail(dot)com> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: High memory usage / performance issue ( temp tables ? ) |
Date: | 2014-08-18 11:20:34 |
Message-ID: | 1408360834601-5815206.post@n5.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Just to make sure I understand this correct : > You can write PostgreSQL
extension in C - and store XML only in memory.Meaning that I write
function(s) which processes the XML using C which will allow me more option
with processing the XML ? Will this allow me to cache the payload data in
memory for the connection and not only for a single function ? If not , this
approach will not work , unless I rewrite a lot of the code / functions. The
current solution makes use of a separate function for each different part of
the XML. Reason for this is that a lot of validation is also done on the
data. > 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 softwareSo your point is
that the use of temp tables in this kind of scenario is not vey efficient.
I'll then try to replace the temp tables with actual tables with some kind
of UID.Thanks for the response.gmb
--
View this message in context: http://postgresql.1045698.n5.nabble.com/High-memory-usage-performance-issue-temp-tables-tp5815108p5815206.html
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2014-08-18 12:29:45 | Re: High memory usage / performance issue ( temp tables ? ) |
Previous Message | gmb | 2014-08-18 11:03:07 | Re: High memory usage / performance issue ( temp tables ? ) |