Re: same question little different test MSSQL vrs Postgres

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: same question little different test MSSQL vrs Postgres
Дата
Msg-id 873bwo17st.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: same question little different test MSSQL vrs Postgres  ("Joel Fradkin" <jfradkin@wazagua.com>)
Список pgsql-sql
"Joel Fradkin" <jfradkin@wazagua.com> writes:

> QUERY PLAN
> "Seq Scan on tblcase  (cost=0.00..30066.21 rows=37401 width=996) (actual
> time=0.344..962.260 rows=22636 loops=1)"
> "  Filter: ((clientnum)::text = 'SAKS'::text)"
> "Total runtime: 1034.434 ms"

Well that says it only took 1s. So it seems this is highly dependent on
whether the data is in cache. Perhaps it was in cache on MSSQL when you
profiled it there and not on postgres?

You could put an index on clientnum, but if the data is usually in cache like
this it might not even be necessary.

-- 
greg



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

Предыдущее
От: "Joel Fradkin"
Дата:
Сообщение: Re: same question little different test MSSQL vrs Postgres
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: same question little different test MSSQL vrs Postgres