Partioning tsearch2 a table into chunks and accessing via views
В списке pgsql-general по дате отправления:
| От | Benjamin Arai |
|---|---|
| Тема | Partioning tsearch2 a table into chunks and accessing via views |
| Дата | |
| Msg-id | 3147EF26-2649-4FDF-BD86-2DB0AF8460FC@benjaminarai.com обсуждение исходный текст |
| Ответы |
Re: [PERFORM] Partioning tsearch2 a table into chunks and accessing via views
|
| Список | pgsql-general |
Hi, I have an application which loads millions of NEW documents each month into a PostgreSQL tsearch2 table. I have the initial version completed and searching performance is great but my problem is that each time a new month rolls around I have to drop all the indexes do a COPY and re-index the entire table. This is problematic considering that each month takes longer than the previous to rebuild the indexes and the application in unavailable during the rebuilding process. In order to avoid the re-indexing I was thinking of instead creating a new table each month (building its indexes and etc) and accessing them all through a view. This way I only have to index the new data each month. Does this work? Does a view with N tables make it N times slower for tsearch2 queries? Is there a better solution? Benjamin
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера