pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marc Sherman <msherman@projectile.ca>
To: Mark Hamby <mark@archer.leavenworth.army.mil>
To: pgsql-sql List <pgsql-sql@postgresql.org>
Subject: RE: Select most recent record?
Date: Thu, 21 Jun 2001 15:27:03 -0400
Message-ID: <NFBBIHBOMKCAGGHPKDJHAEKCCFAA.msherman@projectile.ca> (raw)
In-Reply-To: <NCBBJHAODFJBGACGMCEJIEILDGAA.mark@archer.leavenworth.army.mil>

From: Mark Hamby [mailto:mark@archer.leavenworth.army.mil]
> 
> Marc,
> Did you ever get your problem solved to your satisfaction?
> We have a very simular problem with a historical database
> containing typically 5K id and updates to data every few
> seconds.  We tried unsuccessfully to optimize queries
> such as those already suggested to you.  We found the best
> means to quickly query the data valid at any given time was
> to:
[snip]

By adding an index, I was able to get the performance of the
query within a reasonable threshold; it's still slow, but
acceptable.  I'll bear your suggestion in mind for next time
I run into this kind of problem, though, if my sol'n can't
handle the data.  Thanks,

- Marc




view thread (9+ messages)  latest in thread

Message-ID: <NFBBIHBOMKCAGGHPKDJHAEKCCFAA.msherman@projectile.ca>
Permalink:  ../NFBBIHBOMKCAGGHPKDJHAEKCCFAA.msherman@projectile.ca/
Also on:    postgresql.org/message-id/NFBBIHBOMKCAGGHPKDJHAEKCCFAA.msherman@projectile.ca

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: msherman@projectile.ca, mark@archer.leavenworth.army.mil
  Subject: RE: Select most recent record?
  In-Reply-To: <NFBBIHBOMKCAGGHPKDJHAEKCCFAA.msherman@projectile.ca>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox