Re: [PERFORM] Help with extracting large volumes of records across related tables

2004-09-13 Thread Paul Thomas
relationship between PvA and PvB on a row-by-row basis. Have you considered using cursors? -- Paul Thomas +--+---+ | Thomas Micro Systems Limited | Software Solutions for Business | | Computer Consultants | http

Re: [PERFORM] insert

2004-08-13 Thread Paul Thomas
index but a type mis-match (e.g, an int4 field referencing an int8 field) Either of these will cause a sequential table scan and poor performance. -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for

Re: [PERFORM] The black art of postgresql.conf tweaking

2004-08-04 Thread Paul Thomas
ularly of course ;) People will want to know: - PostgreSQL version - hardware configuration (SCSI or IDE? RAID level?) - table schemas - queries together with EXPLAIN ANALYZE output also output from utils like vmstat, t

Re: [PERFORM] Traduc Party

2004-06-23 Thread Paul Thomas
or 2 years now and have yet to discover any key sequence which makes any sense. But then I don't do drugs so my perseption is probably at odds with the origators of Emacs ;) -- Paul Thomas +--+-+ | Thomas Micro Systems Lim

Re: [PERFORM] Major differences between oracle and postgres performance - what can I do ?

2004-06-18 Thread Paul Thomas
her queries are slightly slower than under Oracle on the same hardware but nothing like this. Usual questions: have you vacuumed the table recently? what are your postgresql.conf settings? can you show us explain ANALYZE output rather than just explain output?

Re: [PERFORM] Visual Explain

2004-06-17 Thread Paul Thomas
On 17/06/2004 17:54 Vitaly Belman wrote: Is it possible to download the Visual Explain only (link)? I only see that you can donwload the whole ISO (which I hardly need). You can get it from CVS and build it yourself. -- Paul Thomas

Re: [PERFORM] Visual Explain

2004-06-17 Thread Paul Thomas
On 17/06/2004 12:10 Adam Witney wrote: Will this run on other platforms? OSX maybe? It's a Java app so it runs on any any platform with a reasonably modern Java VM. -- Paul Thomas +--+-+ | Thomas Micro Systems Li

Re: [PERFORM] ORDER BY user defined function performance issues

2004-06-11 Thread Paul Thomas
04','182','153','6','2004','0') DESC OFFSET 0 LIMIT 20; I expect that pg is having to evaluate your function every time it does a compare within its sort. Something like SELECT t1.value1,t1.value2, getday_total(..) AS

Re: [PERFORM] MySQL vs PG TPC-H benchmarks

2004-04-21 Thread Paul Thomas
y underestimated for todays average hardware configuration (1+GHz, 0.5+GB RAM, fast FSB, fast HDD). It seems to me better strategy to force that 1% of users to "downgrade" cfg. than vice-versa. regards ch This has been discussed many times before. Check the

Re: [PERFORM] MySQL vs PG TPC-H benchmarks

2004-04-21 Thread Paul Thomas
.4. Yes, I've seen other benchmarks which also show that. -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for Business | | Computer Consultants | http://www.t

Re: [PERFORM] statistics

2004-04-07 Thread Paul Thomas
bout what the value should be..) (b) is determined by the dastardly trick of actually sampling the data in the table!!! That's what analyze does. It samples your table(s) and uses the result to feeede into it's descision about when to flip between sequential and index scans. Hope thi

Re: [PERFORM] PostgreSQL and Linux 2.6 kernel.

2004-04-04 Thread Paul Thomas
want I will gladly give you the information. Googling threw up http://spider.tm/apr2004/cstory2.html Interesting and possibly relevant quote: "Benchmarks have shown that in certain conditions the anticipatory algorithm is almost 10 times faster than what 2.4 kernel supports". HTH

Re: [PERFORM] select slow?

2004-03-31 Thread Paul Thomas
hrough the client-side operations to see what could be eating up the 13 seconds. Given that the client and server are on different machines, I'm wondering the bulk of the 13 seconds is due a network mis-configuration

Re: [PERFORM] select slow?

2004-03-30 Thread Paul Thomas
stado = 'A') or (Estado = 'I')), PRIMARY KEY(CodBanco) ); select * from icc_m_banco where codbanco = 1; select * from icc_m_banco where codbanco = 1::int2; -- Paul Thomas +--+-+ | Thomas Micro S

Re: [PERFORM] Scaling further up

2004-03-03 Thread Paul Thomas
eriences anyone? -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Computer Consultants | http://www.thomas-micro-sy

Re: [PERFORM] Scaling further up

2004-03-03 Thread Paul Thomas
rpm disk, whilst it will probably have a lower seek time than a 10K rpm disk, won't have a proportionately (i.e., 2/3rds) lower seek time. - likelihood of page to be cached in memory by the kernel That's effective cache s

Re: [PERFORM] Compile Vs RPMs

2004-02-03 Thread Paul Thomas
his email) which has still got its rpm binaries. My other machines have all been upgraded from source. -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Computer C

Re: [PERFORM] go for a script! / ex: PostgreSQL vs. MySQL

2003-10-09 Thread Paul Thomas
RAM) or do you want to use moderate settings?" Something like this, you get the idea. ISR reading that 7.4 will use a default of shared_beffers = 1000 if the machine can support it (most can). This alone should make a big difference in out

Re: [PERFORM] Attempt at work around of int4 query won't touch int8 index ...

2003-09-16 Thread Paul Thomas
st a thought.. Interestingly, float8 indexes do work OK (float8col = 99). I spend a large part of yesterday grepping through the sources to try and find out why this should be so. No luck so far but I'm going to keep on trying

Re: [PERFORM] Tests

2003-08-22 Thread Paul Thomas
gle-processor Intel/AMD based hardware. Selfishness and sillyness aside, I'm sure your tests will of interest to us all. Thanks in advance -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for

Re: [PERFORM] Perfomance Tuning

2003-08-14 Thread Paul Thomas
to me. I'd start off with something like shared_buffers = 2000 sort_mem = 1024 max_coonections = 100 and see how it performs under normal business loading. -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software So

Re: [PERFORM] How to force PostgreeSQL to work faster?

2003-08-14 Thread Paul Thomas
k (faster maybe but could cause data corruption). Try modifying your program to have connection.setAutoCommit(false) and do a connection.commit() after say every 100 inserts. HTH -- Paul Thomas +--+-+ | Thomas Micro S

Re: [PERFORM] Clearing rows periodically

2003-07-18 Thread Paul Thomas
should be increased for your situation? HTH -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Computer Consultants | http://www.thomas-micro-systems-ltd.co.uk

Re: [PERFORM] index / sequential scan problem

2003-07-17 Thread Paul Thomas
dscan, enable_sort, enable_nestloop, enable_mergejoin or enable_hashjoin have been set to false. Looking at the source, thats the only way I can see that such large numbers can be produced. HTH -- Paul Thomas +--+-+ | Thomas

Re: [PERFORM] index / sequential scan problem

2003-07-17 Thread Paul Thomas
find that the third query is also a lot faster that the first query. HTH -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Computer Consultants | http://www.th

Re: [PERFORM] index / sequential scan problem

2003-07-17 Thread Paul Thomas
ooses a seq scan for small tables as the whole table can often be bought into memory with one IO whereas reading the index then the table would be 2 IOs. HTH -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Sof

Re: [PERFORM] Pgsql - Red Hat Linux - VS MySQL VS MSSQL

2003-07-14 Thread Paul Thomas
ttp://www.redhat.com/docs/manuals/database/. I'd welcome your oppinions on this product. Thank you for your comments. It looks like they just wrote a number of GUI versions of the command line utilities. From what I can tell, its still a standard postgresql database beh

Re: [PERFORM] raise or lower transaction timeout?

2003-07-03 Thread Paul Thomas
using connection pooling, try reducing the maximum number of connections. This will take some of the stress off the database. -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Bus

Re: [PERFORM] Performance advice

2003-06-25 Thread Paul Thomas
, you really should consider using a connection pool as it removes the overhead of creating and closing connections. -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Com