Re: [GENERAL] what Linux to run

2012-03-02 Thread Volodymyr Kostyrko
Ivan Voras wrote: On 28/02/2012 17:57, mgo...@isstrucksoftware.net wrote: Our application runs on Windows, however we have been told that we can pick any OS to run our server on. I'm thinking Linux because from everything I've read, it appears to be a better on performance and there are other f

Re: [GENERAL] Help speeding up a left join aggregate

2012-02-01 Thread Volodymyr Kostyrko
Nick wrote: I have a pretty well tuned setup, with appropriate indexes and 16GB of available RAM. Should this be taking this long? I forced it to not use a sequential scan and that only knocked a second off the plan. QUERY PLAN ---

Re: [GENERAL] How to push predicate down

2012-01-26 Thread Volodymyr Kostyrko
salah jubeh wrote: Hello Guys, In the past I had a view defined as follows CREATE view abcd as SELECT whatever .. --- query1 Some business requierments came up and I had to change it like this CREATE view abcd as SELECT whatever .. --- query1 UNION SELECT whatever .. query2

Re: [GENERAL] scenario with a slow query

2012-01-19 Thread Volodymyr Kostyrko
Tom Lane wrote: Volodymyr Kostyrko writes: Maybe I'm missing something but I have found a case when planner is unoptimal. The planner knows next to nothing about optimizing FULL JOIN, and I would not recommend holding your breath waiting for it to get better about that, because th

[GENERAL] scenario with a slow query

2012-01-18 Thread Volodymyr Kostyrko
Hi all. Maybe I'm missing something but I have found a case when planner is unoptimal. # Creating table create table test_stat(id smallint, count smallint, date date); # Filling table, sorry for php $insert = $db->prepare('insert into test_stat (id, count, date) values (?, 1, to_timestamp(?