Re: [PERFORM] Problem with 11 M records table

2008-05-13 Thread Ramasubramanian G
] Problem with 11 M records table On Tue, May 13, 2008 at 10:57 AM, idc danny <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I'm fairly new to PostgreSQL and I have a problem with > a query: > > SELECT * FROM "LockerEvents" LIMIT 1 OFFSET > 1099 > >

Re: [PERFORM] Problem with 11 M records table

2008-05-13 Thread Scott Marlowe
On Tue, May 13, 2008 at 10:57 AM, idc danny <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I'm fairly new to PostgreSQL and I have a problem with > a query: > > SELECT * FROM "LockerEvents" LIMIT 1 OFFSET > 1099 > > The table LockerEvents has 11 Mlillions records on it > and this query take

Re: [PERFORM] Problem with 11 M records table

2008-05-13 Thread Craig James
idc danny wrote: Hi James, Than you for your response. What I want to achieve is to give to the application user 10k rows where the records are one after another in the table, and the application has a paginating GUI ("First page", "Previous page", "Next page", "Last page" - all links & "Jump t

Re: [PERFORM] Problem with 11 M records table

2008-05-13 Thread Craig James
idc danny wrote: Hi everybody, I'm fairly new to PostgreSQL and I have a problem with a query: SELECT * FROM "LockerEvents" LIMIT 1 OFFSET 1099 The table LockerEvents has 11 Mlillions records on it and this query takes about 60 seconds to complete. The OFFSET clause is almost always

Re: [PERFORM] Problem with 11 M records table

2008-05-13 Thread salman
idc danny wrote: Hi everybody, I'm fairly new to PostgreSQL and I have a problem with a query: SELECT * FROM "LockerEvents" LIMIT 1 OFFSET 1099 The table LockerEvents has 11 Mlillions records on it and this query takes about 60 seconds to complete. Moreover, even after making for eac

Re: [PERFORM] Problem with 11 M records table

2008-05-13 Thread Bill Moran
In response to idc danny <[EMAIL PROTECTED]>: > Hi everybody, > > I'm fairly new to PostgreSQL and I have a problem with > a query: > > SELECT * FROM "LockerEvents" LIMIT 1 OFFSET > 1099 This query makes no sense, and I can't blame PostgreSQL for using a seq scan, since you've given it

[PERFORM] Problem with 11 M records table

2008-05-13 Thread idc danny
Hi everybody, I'm fairly new to PostgreSQL and I have a problem with a query: SELECT * FROM "LockerEvents" LIMIT 1 OFFSET 1099 The table LockerEvents has 11 Mlillions records on it and this query takes about 60 seconds to complete. Moreover, even after making for each column in the table