Re: [PERFORM] Problems with FTS

2011-11-20 Thread Rauan Maemirov
x27;'seri'':A ) | ''декстер'':A ) | ''качество'':A ) | ''сезон'':A ) | ''серия'':A'::tsquery) Filter: (active AND (id <> 500563)) -> Bitmap Index Scan on

Re: [PERFORM] Problems with FTS

2011-01-11 Thread Rauan Maemirov
), created timestamp without time zone DEFAULT now(), CONSTRAINT video_pkey PRIMARY KEY (id), CONSTRAINT video_hash_key UNIQUE (hash) ) WITH ( OIDS=FALSE ); Indexes: CREATE INDEX idx_video_account_id ON video USING btree (account_id); CREATE INDEX idx_video_created ON vide

[PERFORM] Problems with FTS

2010-12-15 Thread Rauan Maemirov
Hi, all. I'm trying to query table: EXPLAIN SELECT "v"."id", "v"."title" FROM "video" AS "v" WHERE (v.active) (v.fts @@ 'dexter:A|season:A|seri:A|декстер:A|качество:A|сезон:A|серия:A'::tsquery and v.id <> 500563 ) ORDER BY COALESCE(ts_rank_cd( '{0.1, 0.2, 0.7, 1.0}', v.fts, 'dexter:A|season:A|seri

Re: [PERFORM] PostgreSQL 8.4 performance tuning questions

2009-07-30 Thread Rauan Maemirov
th wrote: >> On Thu, 30 Jul 2009, Rauan Maemirov wrote: >> >>> maintenance_work_mem = 1GB >>> work_mem = 192MB >>> shared_buffers = 7680MB >>> max_connections = 80 >>> My box is Nehalem 2xQuad 2.8 with RAM 32Gb >> >> While it looks

Re: [PERFORM] PostgreSQL 8.4 performance tuning questions

2009-07-30 Thread Rauan Maemirov
Hey guyz, thanks for help. I solved the problems. The reason was in bad query, that i've accidentally committed right after upgrading. PostgreSQL 8.4 is perfect! Analyze works like a charm, and MUCH better than in 8.3. 2009/7/31 Kevin Grittner : > Tom Lane wrote: >> Scott Carey writes: >>> Gzip

Re: [PERFORM] PostgreSQL 8.4 performance tuning questions

2009-07-30 Thread Rauan Maemirov
> OK, this seems to be the cause. What were the original values of the > config variables? If you've lowered the work_mem and you need to sort a > lot of data, this may be a problem. What amounts of data are you working > with? If the data were not analyzed recently, the execution plans will be > i

Re: [PERFORM] PostgreSQL 8.4 performance tuning questions

2009-07-30 Thread Rauan Maemirov
Unfortunately had to downgrade back to 8.3. Now having troubles with that and still solving them. For future upgrade, what is the basic steps? >Was the database analyzed recently? Hm... there was smth like auto analyzer in serverlog when i started it first time, but i didn't mention that. Should

[PERFORM] PostgreSQL 8.4 performance tuning questions

2009-07-30 Thread Rauan Maemirov
Hi, list. I've just upgraded pgsql from 8.3 to 8.4. I've used pgtune before and everything worked fine for me. And now i have ~93% cpu load. Here's changed values of config: default_statistics_target = 50 maintenance_work_mem = 1GB constraint_exclusion = on checkpoint_completion_target = 0.9 effe

Re: [PERFORM] what server stats to track / monitor ?

2009-06-12 Thread Rauan Maemirov
Hi Alan. For simple needs you can use Staplr, it's very easy to configure. There's also one - zabbix, pretty much. 2009/6/13 Alan McKay: > Hey folks, > > I'm new to performance monitoring and tuning of PG/Linux (have a fair > bit of experience in Windows, though those skills were last used about >

[PERFORM] Re: Query Optimization with Kruskal’s Algorithm

2008-05-10 Thread Rauan Maemirov
On May 8, 2:09 am, [EMAIL PROTECTED] ("Alexander Staubo") wrote: > On 5/7/08, Tarcizio Bini <[EMAIL PROTECTED]> wrote: > > > I'm working on optimizing queries using the Kruskal algorithm > > (http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=4318118). > > That paper looks very interesting. I wou

Re: [PERFORM] Creating indexes

2008-05-08 Thread Rauan Maemirov
On May 9, 1:49 am, [EMAIL PROTECTED] (Asche) wrote: > Hi, > > > Hi, all. I want to ask what type of index is better to create for > > bigint types. I have table with bigint (bigserial) primary key. What > > http://www.postgresql.org/docs/8.3/static/sql-createtable.html > > PostgreSQL automatically

[PERFORM] Creating indexes

2008-05-08 Thread Rauan Maemirov
Hi, all. I want to ask what type of index is better to create for bigint types. I have table with bigint (bigserial) primary key. What type is better to use for it? I tried btree and hash, but didn't notice any differences in execution time. For GiST and GIN there is a trouble that I must create op