| От | Leif K-Brooks |
|---|---|
| Тема | Performance of multiple queries? |
| Дата | |
| Msg-id | 85d9a90905042102336d824c95@mail.gmail.com обсуждение исходный текст |
| Ответы |
Re: Performance of multiple queries?
|
| Список | pgsql-novice |
I'm wondering about the performance of using one query versus several. For instance, how much slower would several queries be: SELECT name FROM table WHERE id=123; SELECT value FROM table WHERE id=123; SELECT type FROM table WHERE id=123; As compared to one larger equivalent query: SELECT name, value, type FROM table WHERE id=123; It would be immensely easier for my application to use multiple small queries so that it wouldn't need to worry about invalidating a cache after a period of time, but if the performance hit would be too large, I suppose I'll bite the bullet and write the annoying caching code.
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера