Re: [PERFORM] good pc but bad performance,why?

2004-04-07 Thread Steven Butler
It sounds almost like you're doing one insert per transaction. Try wrapping multiple inserts into a single transaction and see if that helps. This may not be appropriate for your application, but it does guarantee that committed transactions will not be lost. My apologies if you are already doin

[PERFORM] Using bigint needs explicit cast to use the index

2004-03-07 Thread Steven Butler
Hi, I've recently converted a database to use bigint for the indices. Suddenly simple queries like select * from new_test_result where parent_id = 2 are doing full table scans instead of using the index. The table has over 4 million rows, of which only 30 or so would be selected by the query.