Re: [SQL] MSSQL versus Postgres timing

2005-02-01 Thread Joel Fradkin
ng attachments. -Original Message- From: Tom Lane [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 01, 2005 4:53 PM To: Joel Fradkin Cc: 'Michael Fuhr'; pgsql-sql@postgresql.org Subject: Re: [SQL] MSSQL versus Postgres timing "Joel Fradkin" <[EMAIL PROTECTE

Re: [SQL] MSSQL versus Postgres timing

2005-02-01 Thread Tom Lane
"Joel Fradkin" <[EMAIL PROTECTED]> writes: > " -> Sort (cost=38119.24..38333.26 rows=85611 width=52) > (actual time=20667.645..21031.627 rows=99139 loops=1)" > "Sort Key: (a.clientnum)::text, a.jobtitleid" > "-> Seq Scan on tblassociate a (c

Re: [SQL] MSSQL versus Postgres timing

2005-02-01 Thread PFC
CREATE OR REPLACE VIEW viwassoclist AS SELECT a.clientnum, a.associateid, a.associatenum, a.lastname, a.firstname, jt.value AS jobtitle, l.name AS "location", l.locationid AS mainlocationid, l.divisionid, l.regionid, l.districtid, (a.lastname::text || ', '::text) || a.firstname::text AS ass

Re: [SQL] MSSQL versus Postgres timing

2005-02-01 Thread Joel Fradkin
--- From: Michael Fuhr [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 01, 2005 12:07 PM To: Joel Fradkin Cc: pgsql-sql@postgresql.org Subject: Re: [SQL] MSSQL versus Postgres timing On Tue, Feb 01, 2005 at 11:54:11AM -0500, Joel Fradkin wrote: > > A table with 645,000 records for associates

Re: [SQL] MSSQL versus Postgres timing

2005-02-01 Thread Joel Fradkin
-Original Message- From: Michael Fuhr [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 01, 2005 12:07 PM To: Joel Fradkin Cc: pgsql-sql@postgresql.org Subject: Re: [SQL] MSSQL versus Postgres timing On Tue, Feb 01, 2005 at 11:54:11AM -0500, Joel Fradkin wrote: > > A tabl

Re: [SQL] MSSQL versus Postgres timing

2005-02-01 Thread Joel Fradkin
With seq scan on. -Original Message- From: Michael Fuhr [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 01, 2005 12:07 PM To: Joel Fradkin Cc: pgsql-sql@postgresql.org Subject: Re: [SQL] MSSQL versus Postgres timing On Tue, Feb 01, 2005 at 11:54:11AM -0500, Joel Fradkin wrote: >

Re: [SQL] MSSQL versus Postgres timing

2005-02-01 Thread Joel Fradkin
ws=99139 loops=1)" " Filter: ((clientnum)::text = 'SAKS'::text)" "Total runtime: 30319.859 ms" Joel Fradkin -Original Message- From: Scott Marlowe [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 01, 2005 11:59 AM To: Joel F

Re: [SQL] MSSQL versus Postgres timing

2005-02-01 Thread Bricklen Anderson
Michael Fuhr wrote: On Tue, Feb 01, 2005 at 11:54:11AM -0500, Joel Fradkin wrote: A table with 645,000 records for associates has view (basically select * from tblassociates where clientnum = 'test') This is taking 13 seconds in postgres and 3 seconds in MSSQL. Please post the EXPLAIN ANALYZE outp

Re: [SQL] MSSQL versus Postgres timing

2005-02-01 Thread Michael Fuhr
On Tue, Feb 01, 2005 at 11:54:11AM -0500, Joel Fradkin wrote: > > A table with 645,000 records for associates has view (basically select * > from tblassociates where clientnum = 'test') > > This is taking 13 seconds in postgres and 3 seconds in MSSQL. Please post the EXPLAIN ANALYZE output for t

Re: [SQL] MSSQL versus Postgres timing

2005-02-01 Thread Scott Marlowe
On Tue, 2005-02-01 at 10:54, Joel Fradkin wrote: > All is moving along well. > > I have all my views and data and am testing things out a bit. > > A table with 645,000 records for associates has view (basically select > * from tblassociates where clientnum = âtestâ) What does explain analyze s