Thread: Need Help selecting Large Data From PQSQL

Need Help selecting Large Data From PQSQL

From
Date:
 
Hi,
 
        I am using Postgresql 8.1 for handling large data.
 
        I am having One Parent Table and Child Table I.e.inherits from parent table.
 
       The constraint for partitioning table is date range.
 
       I have to generate monthly report, report generation query contains union with other table also.
 
       The report contains more than 70,000 records but it takes more than half an hour and some time no result.
 
        Please help me to generating the report fast.
 
Regards,
Shilpa
 
       

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com

Re: Need Help selecting Large Data From PQSQL

From
Richard Huxton
Date:
shilpa.raghavendra@wipro.com wrote:
>        The report contains more than 70,000 records but it takes more
> than half an hour and some time no result.
>
>         Please help me to generating the report fast.

You'll need to provide some more information before anyone can help.
Something along the lines of:
- table definitions
- query definition
- EXPLAIN ANALYSE output (or just plain EXPLAIN if that's not practical)

--
   Richard Huxton
   Archonet Ltd