| От | Tom Lane |
|---|---|
| Тема | Re: How PostgreSQL handles multiple DDBB instances? |
| Дата | |
| Msg-id | 20203.1180118064@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: How PostgreSQL handles multiple DDBB instances? (Arnau <arnaulist@andromeiberica.com>) |
| Список | pgsql-performance |
Arnau <arnaulist@andromeiberica.com> writes:
> The point I'm worried is performance. Do you think the performance
> would be better executing exactly the same queries only adding an extra
> column to all the tables e.g. customer_id, than open a connection to the
> only one customers DB and execute the query there?
[ shrug... ] That's going to depend on enough factors that I don't
think anyone could give you a generic answer. You'd have to test it for
yourself under your own application conditions.
However: doing it that way seems to me to create severe risks that the
customers might be able to look at each others' data. You probably want
to go with separate databases just as a security matter.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера