| От | Bryan White |
|---|---|
| Тема | How to best grab a chunk of Ids from a sequence |
| Дата | |
| Msg-id | 00a801c16df3$e06d6230$2ed260d1@bryan обсуждение исходный текст |
| Ответы |
Re: How to best grab a chunk of Ids from a sequence
Re: How to best grab a chunk of Ids from a sequence |
| Список | pgsql-sql |
I have a process that will be creating a large number of records (about 4Million). I am thinking of making this process run quicker by writing the records to a file in 'dump' format and then running that file through psql. The problem is each record has a sequence number and I need to know the sequence ids for other purposes in this process. My question is is there a way to grab 4 million IDs from a sequence without calling nextval once for each ID. Note, this sequence is being actively drawn on by other processes. --------- Bryan White
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера