Re: varchar vs. text + constraint/triggers was: Help request to improve function performance

Поиск
Список
Период
Сортировка
От Grzegorz Jaśkiewicz
Тема Re: varchar vs. text + constraint/triggers was: Help request to improve function performance
Дата
Msg-id 2f4958ff0904230450pb8cd1a8q32db1d09958ce946@mail.gmail.com
обсуждение исходный текст
Ответ на Re: varchar vs. text + constraint/triggers was: Help request to improve function performance  (Ivan Sergio Borgonovo <mail@webthatworks.it>)
Список pgsql-general
essentially you are trying to store a database in a database, and
that's slow for one.
Second, storing things as varchar is space and index (space)
ineffective - and that's another reason to make things slower.
Third - you need to complicate your logic to retrieve data, and that adds up.

text is less of hassle for db, true - but that's just a tip of iceberg.

Just learn to create proper database schema, and make it so it meets
your criteria - otherwise , whatever else you choose - especially
'automatic' 'intelligent' isn't going to be ever as good as proper
schema.

В списке pgsql-general по дате отправления:

Предыдущее
От: Ivan Sergio Borgonovo
Дата:
Сообщение: Re: varchar vs. text + constraint/triggers was: Help request to improve function performance
Следующее
От: "Chen, Dongdong (GE Healthcare)"
Дата:
Сообщение: need help for PostgreSQL consistency check mechanism