From: | "Pirtea Calin" <pcalin(at)rdsor(dot)ro> |
---|---|
To: | "PostgreSQL General" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: limit /offset |
Date: | 2002-03-18 10:09:22 |
Message-ID: | 001c01c1ce65$094d1570$0100a8c0@dizzy |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> What makes you think that an index makes it faster to lookup the 10,000th
row
> in a table? A index indexes on *values* and has nothing to do with the row
> numbers. So your query has to go through and check the 10,000 rows to
ensure
> they actually match your query. That's what takes the time.
>
I understand now. I think i hoped that offset uses the index to jump to the
position
10000 (like jumping to a position in a file where the file is the index) and
start sending
rows from that point only. It was a stupid query anyway.
Thank you.
Best regards,
Aplication Developer
Pirtea Calin Iancu
S.C. SoftScape S.R.L.
pcalin(at)rdsor(dot)ro
From | Date | Subject | |
---|---|---|---|
Next Message | Bruno Wolff III | 2002-03-18 15:21:43 | Re: Random Numbers/Letters |
Previous Message | pgsql-gen Newsgroup (@Basebeans.com) | 2002-03-18 08:55:16 | Re: Postal code radius searches |