Re: [rt-users] RT 3.8.9 + PostgreSQL 8.4.7 - missing/bad indexes

2011-04-15 Thread Ruslan Zakirov
On Fri, Apr 15, 2011 at 1:01 PM, Dominic Hargreaves wrote: > On Fri, Apr 15, 2011 at 12:09:58PM +1000, Jesse Vincent wrote: >> On Thu 14.Apr'11 at 15:26:33 +0200, Václav Ovsík wrote: >> > SELECT  * FROM Groups WHERE Instance = ? AND LOWER(Domain) = LOWER(?) AND >> > LOWER(Type) = LOWER(?) >> > >>

Re: [rt-users] RT 3.8.9 + PostgreSQL 8.4.7 - missing/bad indexes

2011-04-15 Thread Kevin Falcone
On Fri, Apr 15, 2011 at 07:44:27AM -0500, Kenneth Marshall wrote: > On Fri, Apr 15, 2011 at 12:09:58PM +1000, Jesse Vincent wrote: > > > > > > > > On Thu 14.Apr'11 at 15:26:33 +0200, V?clav Ovs?k wrote: > > > Hi, > > > because of horrible performance of spreadsheet export of tickets I found > >

Re: [rt-users] RT 3.8.9 + PostgreSQL 8.4.7 - missing/bad indexes

2011-04-15 Thread Jesse Vincent
> > Okay, but does removing the LOWER()'s make the product harder to use? > In other words, when writing a Scrip that uses Type would it now be > case sensitive? i.e. Were AdminCc and admincc both acceptable? Some > of my most painful bug hunts were case-only related. Maybe the RT > code already

Re: [rt-users] RT 3.8.9 + PostgreSQL 8.4.7 - missing/bad indexes

2011-04-15 Thread Kenneth Marshall
On Fri, Apr 15, 2011 at 12:09:58PM +1000, Jesse Vincent wrote: > > > > On Thu 14.Apr'11 at 15:26:33 +0200, V?clav Ovs?k wrote: > > Hi, > > because of horrible performance of spreadsheet export of tickets I found > > some badly created or missing indexes. I didn't investigate if other > > RDBMS s

Re: [rt-users] RT 3.8.9 + PostgreSQL 8.4.7 - missing/bad indexes

2011-04-15 Thread Václav Ovsík
On Fri, Apr 15, 2011 at 12:09:58PM +1000, Jesse Vincent wrote: > ... > I'd actually consider this a code bug. We shouldn't be LOWER()ing either > of those parameters. Please open a ticket by mailing > rt-b...@bestpractical.com I did it. It have received ticket [rt3 #17121]. About the second pro

Re: [rt-users] RT 3.8.9 + PostgreSQL 8.4.7 - missing/bad indexes

2011-04-15 Thread Dominic Hargreaves
On Fri, Apr 15, 2011 at 12:09:58PM +1000, Jesse Vincent wrote: > On Thu 14.Apr'11 at 15:26:33 +0200, Václav Ovsík wrote: > > SELECT * FROM Groups WHERE Instance = ? AND LOWER(Domain) = LOWER(?) AND > > LOWER(Type) = LOWER(?) > > > > e.g. one my bind params: 106431 'RT::Ticket-Role' 'Requestor' >

Re: [rt-users] RT 3.8.9 + PostgreSQL 8.4.7 - missing/bad indexes

2011-04-14 Thread Jesse Vincent
On Thu 14.Apr'11 at 15:26:33 +0200, Václav Ovsík wrote: > Hi, > because of horrible performance of spreadsheet export of tickets I found > some badly created or missing indexes. I didn't investigate if other > RDBMS schemas has the same problem. > To discover problems I rewrote Results.tsv into

[rt-users] RT 3.8.9 + PostgreSQL 8.4.7 - missing/bad indexes

2011-04-14 Thread Václav Ovsík
Hi, because of horrible performance of spreadsheet export of tickets I found some badly created or missing indexes. I didn't investigate if other RDBMS schemas has the same problem. To discover problems I rewrote Results.tsv into command-line shape and run it with DBI_TRACE=2 finally. For every r