Re: [PERFORM] PostgreSQL using the wrong Index

2005-06-13 Thread Wei Weng
Tom Lane wrote: This was just covered in excruciating detail yesterday ... You need to write order by symbol desc, time desc limit 1 to get the planner to recognize the connection to the sort order of this index. Since you're only selecting one value of symbol, the actual output doesn

[PERFORM] Is there any other way to do this?

2005-05-17 Thread Wei Weng
Hi, I have a small table that has only 23 rows, but I do frequent updates( every second ) on it. After running the updates for a while, the performance of SELECT from that table has deteriated into something like 30 seconds. So, natually, I did a VACUUM ANALYZE first. Here is the VERBOSE output

Re: [SQL] [PERFORM] sql performance and cache

2003-10-14 Thread Wei Weng
On Sat, 11 Oct 2003, Christopher Kings-Lynne wrote: > > > I have two very similar queries which I need to execute. They both have > > exactly the same from / where conditions. When I execute the first, it takes > > about 16 seconds. The second is executed almost immediately after, it takes > > 13