pg.ddx.io pgsql-performance@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Tomaz Borstnar <tomaz.borstnar@over.net>
To: pgsql-performance@postgresql.org
Subject: Re: any way to use indexscan to get last X values
Date: Mon, 16 Jun 2003 09:08:49 +0200
Message-ID: <5.2.1.1.0.20030616090124.02a85678@127.0.0.1> (raw)
In-Reply-To: <3EEDADF0.29611.3901BC1@localhost>
References: <5.2.1.1.0.20030616002729.01bba2e0@127.0.0.1>
<23329.1055695990@sss.pgh.pa.us>
At 08:15 16.6.2003, Shridhar Daithankar wrote:
> > Total runtime: 50.20 msec
> > Used to be between 5800 and 6741 msec before this patch!
>
>Good that the patch works for you. But as I see there is an improvement in
>plan. Not nitpicking but what does actual performance difference between
>system
>before patch and after patch?
A lot since this is query to get list of last active threads sorted by last
modified date. With times less than 300ms you mostly do not notice slower
query as there could be other factors to affect the speed like network
delays and such. But people on fast links will notice that it takes a bit
long to display list of threads - especially when the system is using PHP
accelerator and compression.
So this really means major increase of performance for real situation -
forum with over 85 000 messages where you get rid of full scan and 2 full
sorts to display list of msgs which happens a lot. You can always use some
query/page caching things, but then people start to post duplicates,
because they think the message did not make it into the database.
Tomaz
view thread (10+ messages) latest in thread
Message-ID: <5.2.1.1.0.20030616090124.02a85678@127.0.0.1> Permalink: ../5.2.1.1.0.20030616090124.02a85678@127.0.0.1/ Also on: postgresql.org/message-id/5.2.1.1.0.20030616090124.02a85678@127.0.0.1 ·
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 from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-performance@postgresql.org Cc: tomaz.borstnar@over.net Subject: Re: any way to use indexscan to get last X values In-Reply-To: <5.2.1.1.0.20030616090124.02a85678@127.0.0.1> References: <5.2.1.1.0.20030616002729.01bba2e0@127.0.0.1> <23329.1055695990@sss.pgh.pa.us> <5.2.1.1.0.20030616090124.02a85678@127.0.0.1> * 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