| От | Gaetan GUYODO |
|---|---|
| Тема | Index and primary key |
| Дата | |
| Msg-id | 01080610375202.01284@uc-102-233 обсуждение исходный текст |
| Список | pgsql-novice |
Hi, I have one question : I have a table, with 12 fields, and 70000 records (not more, that's a thesaurus) I will have to make a "select" only on one or two fields. I have no index on this table. And primary key is a field containing a five digit number (unique, not null), which is an important information of the record (I made this field "primary key" because I'm sure that it will be unique). Do you think this conception is a good one ? Maybe, I have to use one of the fields on which I will make a select as primary key ? Maybe I have to add an index field ? (if I understand, that's better-faster to extract a record, but isn't my "primary key" 5 digit code similar ? Thanks, Gaetan
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера