Re: Querying with arrays

Поиск
Список
Период
Сортировка
От Gerardo Herzig
Тема Re: Querying with arrays
Дата
Msg-id 1462618385.1624233.1417722978423.JavaMail.root@fmed.uba.ar
обсуждение исходный текст
Ответ на Re: Querying with arrays  (Tim Dudgeon <tdudgeon.ml@gmail.com>)
Список pgsql-sql
> 
> The plan for the query is this:
> 
> "Seq Scan on lists  (cost=0.00..16.88 rows=3 width=86) (actual
> time=0.006..0.008 rows=1 loops=1)"
> "  Filter: (hits @> '{7}'::integer[])"
> "Planning time: 0.058 ms"
> "Execution time: 0.025 ms"
> 
> What am I doing wrong?
> 
> Tim
> 

With so few rows to read, it is actually slower to do a index scan followed by the table scan (in order to actually
readthe data).
 
Thats why it is using a seq scan.

Gerardo



В списке pgsql-sql по дате отправления:

Предыдущее
От: Achilleas Mantzios
Дата:
Сообщение: Re: Querying with arrays
Следующее
От: "Huang, Suya"
Дата:
Сообщение: rolling window without aggregation