| От | David Stanaway |
|---|---|
| Тема | Re: [Dbdpg-general] benchmarking old Pg and DBD::Pg |
| Дата | |
| Msg-id | 1112985886.19084.8.camel@david.dialmex.net обсуждение |
| Ответ на | Re: [Dbdpg-general] benchmarking old Pg and DBD::Pg (Vlad <marchenko@gmail.com>) |
| Ответы |
Re: [Dbdpg-general] benchmarking old Pg and DBD::Pg
|
| Список | pgsql-interfaces |
On Fri, 2005-04-08 at 14:12 -0400, Vlad wrote: > we've noticed that too here and quick explanation is - with the new > "prepare" implementation, the query get prepared on the server side, > which is good; the problem is that all of the bind values passed to > the sql server during execute call are in form of ***varchar***, i.e. > even if a field is of int type in postgresql table, DBD::Pg passes > your bind value as char - as a result, postgresql doesn't use indexes. A work around would be in the sql to cast the param to the appropriate type. EG: SELECT * FROM Person WHERE personid = %::int -- David Stanaway <david@stanaway.net>
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера