Re: SQL statement over 500% slower with 9.2 compared with 9.1
От | Rafael Martinez |
---|---|
Тема | Re: SQL statement over 500% slower with 9.2 compared with 9.1 |
Дата | |
Msg-id | 5226D7FF.7020000@usit.uio.no обсуждение исходный текст |
Ответ на | Re: SQL statement over 500% slower with 9.2 compared with 9.1 (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-performance |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/28/2013 09:08 PM, Tom Lane wrote: [..........] > > If you don't want to do any major rewriting, you could probably > stick an OFFSET 0 into the outer EXISTS sub-select (and/or the > inner one) to get something similar to the 9.1 plan. > Thank you for your help. Using OFFSET 0 in SELECT * FROM FilmParticipation C WHERE C.partType = 'cast' AND C.filmId = D.filmId AND C.personId = D.personId OFFSET 0 give us a result similar to 9.1. This SQL is used as an example in one of the database courses at the University. I will send them this information and they can decide if they want to rewrite the statement or use the OFFSET trick. regards, - -- Rafael Martinez Guerrero Center for Information Technology University of Oslo, Norway PGP Public Key: http://folk.uio.no/rafael/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iEYEARECAAYFAlIm1/8ACgkQBhuKQurGihRAogCePl6G51w8dfYMruj+qSm4Vsjl coMAn2sjyv6PcfsKhASC7ct0WI4YKRtJ =FdeD -----END PGP SIGNATURE-----
В списке pgsql-performance по дате отправления: