From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | Rita <rmorgan466(at)gmail(dot)com>, Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: using hstore to store documents |
Date: | 2017-01-26 15:25:49 |
Message-ID: | b4058481-88b9-7925-7e3f-d65c47b13a21@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 01/26/2017 04:37 AM, Rita wrote:
> of course, sorry for being vague.
>
> I have an external process generating a XML file (every 30 secs) which
> is about 10MB. I would like to store the file as XML type for me to
> query using xpath. I plan to query it every few seconds by few hundred
> clients. so, it maybe easier for me create a separate table of my xpath
> results and have clients query that table (xpath can be expensive).
>
> So, I was wondering if hstore will help me for fast access.
>
> Please let me know if anything is unclear.
>
Realized it might help if you provide the schema of the tables you are
using or plan to use.
>
>
> On Thu, Jan 26, 2017 at 3:58 AM, Tomas Vondra
> <tomas(dot)vondra(at)2ndquadrant(dot)com <mailto:tomas(dot)vondra(at)2ndquadrant(dot)com>> wrote:
>
> On 01/26/2017 09:08 AM, Rita wrote:
>
> Is it possible to use hstore to store xml document?
>
> I would like to have
>
> "status" => "<xml>..."::xml
>
>
> Keys/values in hstore are simply text strings, so you can store
> anything you want formatted as a string.
>
> Not sure if that's what you're looking for though, you'll probably
> need to explain what you're trying to achieve to get better answers.
>
> regards
>
> --
> Tomas Vondra http://www.2ndQuadrant.com
> PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
>
>
>
>
> --
> --- Get your facts first, then you can distort them as you please.--
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2017-01-26 15:38:16 | Re: using hstore to store documents |
Previous Message | Adrian Klaver | 2017-01-26 15:22:31 | Re: using hstore to store documents |