On 10.10.2016 17:31, Andrzej Zawadzki
wrote:
Hi, I made another INDEX, without opclass: CREATE INDEX kredytob_pesel_typkred_idx ON public.kredytob USING btree (pesel COLLATE pg_catalog."default", typkred); after that: analyze kredytob; And now: "Limit (cost=333.31..333.31 rows=1 width=4) (actual time=0.100..0.102 rows=1 loops=1)" " Output: id" " Buffers: shared hit=8" " -> Sort (cost=333.31..333.59 rows=114 width=4) (actual time=0.095..0.095 rows=1 loops=1)" " Output: id" " Sort Key: b.id DESC" " Sort Method: top-N heapsort Memory: 25kB" " Buffers: shared hit=8" " -> Index Scan using kredytob_pesel_typkred_idx on public.kredytob b (cost=0.43..332.74 rows=114 width=4) (actual time=0.046..0.065 rows=5 loops=1)" " Output: id" " Index Cond: (b.pesel = '22222222222'::bpchar)" " Buffers: shared hit=8" "Planning time: 0.438 ms" "Execution time: 0.154 ms" So, what is a reason that "SLOW" server doesn't like opclass index? -- Andrzej |
- [PERFORM] Why query plan is different? Andrzej Zawadzki
- Re: [PERFORM] Why query plan is different? Pavel Stehule
- Re: [PERFORM] Why query plan is different? Andrzej Zawadzki
- Re: [PERFORM] Why query plan is different? Andrzej Zawadzki
- Re: [PERFORM] Why query plan is different? Pavel Stehule
- Re: [PERFORM] Why query plan is different? Andrzej Zawadzki
- Re: [PERFORM] Why query plan is differen... Pavel Stehule