<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - Indexy dla widoków]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=14386&amp;type=atom"/>
	<updated>2017-08-27T20:10:58Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=14386</id>
		<entry>
			<title type="html"><![CDATA[Odp: Indexy dla widoków]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=18030#p18030"/>
			<content type="html"><![CDATA[Najlepiej zobacz jak jest skonstruowany widok customer_view i zmodyfikuj swoje zapytanie tak by wykorzystywał dane z tego widoku, ale jeśli tak nie możesz to planer powinien wykorzystywać index na tabeli, po której łączysz się LEFT JOIN-em. Tak czy siak musisz pogrzebać w skrypcie, który jest źródłem danych do tego widoku.

PS
Mam nadzieję, że wcześniej sprawdziłeś, że planer nie wykorzystuje indesx-ów, o których pisałem wcześniej. Załącz cały select plus konstrukcie tabel i widoku customer_view to możemy pogadać bardziej szczegółowo.]]></content>
			<author>
				<name><![CDATA[c_michal]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=627</uri>
			</author>
			<updated>2017-08-27T20:10:58Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=18030#p18030</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Indexy dla widoków]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=18029#p18029"/>
			<content type="html"><![CDATA[Nie mogę użyć widoków zmaterializowanych. A jest jakaś inna opcja żeby planer skorzystał z indexu. Z założeniem żeby join był na widok]]></content>
			<author>
				<name><![CDATA[koniol]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=4005</uri>
			</author>
			<updated>2017-08-25T17:27:51Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=18029#p18029</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Odp: Indexy dla widoków]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=18028#p18028"/>
			<content type="html"><![CDATA[index możesz założyć tylko na widoki zmaterializowane]]></content>
			<author>
				<name><![CDATA[c_michal]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=627</uri>
			</author>
			<updated>2017-08-25T16:50:58Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=18028#p18028</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Indexy dla widoków]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=18027#p18027"/>
			<content type="html"><![CDATA[Czy jest możliwość zdefiniowania indeksu dla widoku. Chdzi mi o to zeby planre wykorzystal index dla zapytania:

LEFT JOIN (
SELEC  * FROM customers_view
) as T ....]]></content>
			<author>
				<name><![CDATA[koniol]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=4005</uri>
			</author>
			<updated>2017-08-25T16:04:30Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=18027#p18027</id>
		</entry>
</feed>
