Re: [PERFORM] Speeding up this function

2004-10-19 Thread Jeremy Dunn
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Matt Nuzum > Sent: Tuesday, October 19, 2004 3:35 PM > To: pgsql-performance > Subject: [PERFORM] Speeding up this function > > > All it does is try to "link" pageviews together into a session. >

Re: [PERFORM] Equivalent praxis to CLUSTERED INDEX?

2004-08-27 Thread Jeremy Dunn
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Bruce Momjian > Sent: Friday, August 27, 2004 1:27 PM > To: Adi Alurkar > Cc: [EMAIL PROTECTED] > Subject: Re: [PERFORM] Equivalent praxis to CLUSTERED INDEX? > > > > But what is the advantage o

Re: [PERFORM] 50 000 000 Table entries and I have to do a keyword search HELP NEEDED

2004-06-15 Thread Jeremy Dunn
Title: Message One option that does not take advantage of any fancy indexing methods is to create a trigger on the table, on insert/update/delete, which extracts each individual word from the field you care about, and creates an entry in another 'keyword' table, id = 'word', value = pk of yo

Re: [PERFORM] index v. seqscan for certain values

2004-04-13 Thread Jeremy Dunn
> There's a hard limit of 1000, I believe. Didn't it give you > a warning saying so? No warning at 2000, and no warning at 100,000 either! Remember we are still on 7.2.x. The docs here http://www.postgresql.org/docs/7.2/static/sql-altertable.html don't say anything about a limit. This is go

Re: [PERFORM] index v. seqscan for certain values

2004-04-13 Thread Jeremy Dunn
> > When I just tried it again with a value of 300, analyze, > then run the query, I get a *worse* result for an estimate. I don't understand > > this. > > That's annoying. How repeatable are these results --- if you > do ANALYZE over again several times, how much does the row > count estima

Re: [PERFORM] index v. seqscan for certain values

2004-04-12 Thread Jeremy Dunn
> "Jeremy Dunn" <[EMAIL PROTECTED]> writes: > > The question: why does the planner consider a sequential scan to be > > better for these top 10 values? > > At some point a seqscan *will* be better. In the limit, if > the key being sought is common enoug

Re: [PERFORM] index v. seqscan for certain values

2004-04-12 Thread Jeremy Dunn
with VACUUM. Jeremy Dunn wrote: > I've searched the archives and can't find an answer to this seemingly > simple question. Apologies if it's too common. > > The table in question has ~1.3M rows. It has 85 columns, 5 of which > have single-column indexes. >

[PERFORM] index v. seqscan for certain values

2004-04-12 Thread Jeremy Dunn
Title: Message I've searched the archives and can't find an answer to this seemingly simple question.  Apologies if it's too common.   The table in question has ~1.3M rows.  It has 85 columns, 5 of which have single-column indexes.   The column in question (CID) has 183 distinct values.  Fo