| От | Steinar H. Gunderson |
|---|---|
| Тема | Re: Text/Varchar performance... |
| Дата | |
| Msg-id | 20051010125422.GA7454@uio.no обсуждение исходный текст |
| Ответ на | Re: Text/Varchar performance... ("Ahmad Fajar" <gendowo@konphalindo.or.id>) |
| Список | pgsql-performance |
On Mon, Oct 10, 2005 at 06:28:23PM +0700, Ahmad Fajar wrote: > than you can index the field and you can gain better > perfomance in searching base on the fields, because the search uses the > index you have been created. That really depends on the queries. An index will help some queries (notably <, = or > comparisons, or LIKE 'foo%' with the C locale), but definitely not all (it will help you nothing for LIKE '%foo%'). > If you do not need to index the field, you can use the text field. Because > text field can store data up to 4 Gbytes. So can varchar. /* Steinar */ -- Homepage: http://www.sesse.net/
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера