Re: Large selects

From: "Koth, Christian (DWBI)" <Christian(dot)Koth(at)smiths-heimann(dot)com>
To: "Bendik Rognlien Johansen" <bensmailinglists(at)gmail(dot)com>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Large selects
Date: 2006-08-24 08:38:42
Message-ID: F5F602C218633C419C7BCA6CDDC6E90A02599086@COSSMGMBX04.EMAIL.CORP.TLD
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc


Bendik,

- Loop through the results, building a Lucene index.

I guess you are trying to search within the contact data and therefore using lucene? Why not using the database build in possibilities for searching using SQL?

- Does anyone have any suggestions on how to deal with this, other that throwing more hardware at the problem? Cursors?

We are using cursors to access large result sets which works quite well. Also with postgres JDBC you can use scrollable result sets (only forward scrolling) and a limited fetch size.

Christian

******************************************
The information contained in, or attached to, this e-mail, may contain confidential information and is intended solely for the use of the individual or entity to whom they are addressed and may be subject to legal privilege. If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager. Please do not copy it for any purpose, or disclose its contents to any other person. The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company. The recipient should check this e-mail and any attachments for the presence of viruses. The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email.
******************************************

Browse pgsql-jdbc by date

  From Date Subject
Next Message Peter Neu 2006-08-24 08:52:49 WG: HowTo: Scheduled User Management?
Previous Message Roland Walter 2006-08-24 08:30:38 Re: Large selects