Re: How can I check if my cursor statement is using index
В списке pgsql-general по дате отправления:
| От | Dragan Matić |
|---|---|
| Тема | Re: How can I check if my cursor statement is using index |
| Дата | |
| Msg-id | 433BA0B7.2020005@panforma.co.yu обсуждение исходный текст |
| Ответ на | How can I check if my cursor statement is using index (Dragan Matić <mlists@panforma.co.yu>) |
| Список | pgsql-general |
Dragan Matić wrote: > I have a program that reads data from Postgresql database (version > 8.0.3) through ODBC, but data retrieval is pretty slow. When I type > the same SQL sentence in pgadmin III or any other sql tool it is much > faster, and typing 'explain' clearly shows that it is using index. > However the program is reading data through a dynamic cursor, I would > like to know if there is a way to check if the same sql query > generated through dynamic cursor still uses indexes? > Thanks in advance > > Dragan > Another thing i've noticed is that if I open a simple cursor it definitely uses index as data is retrieved instantly as opposed to 2-3 seconds when I try to retrieve data through a dynamic cursor. Is there a way to force index usage through a dynamic cursor?
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера