Re: Separate 100 M spatial data in 100 tables VS one big table

2024-03-06 Thread kimaidou
Hi ! I would like to thank you all for your detailed answers and explanations. I would give "partitioning" a try, by creating a dedicated new partition table, and insert a (big enough) extract of the source data in it. You are right, the best would be to try in real life ! Best wishes Kimaidou

Re: Separate 100 M spatial data in 100 tables VS one big table

2024-03-05 Thread Tomas Vondra
On 3/5/24 13:47, Marc Millas wrote: > Salut Kimaidou, > why not a partitioned table with the department a partitioning Key ? > each year just detach the obsolete data, department by > department (ie.detach the partition, almost instantaneous) and drop or keep > the obsolete data. > No delete, quite

Re: Separate 100 M spatial data in 100 tables VS one big table

2024-03-05 Thread Marc Millas
Salut Kimaidou, why not a partitioned table with the department a partitioning Key ? each year just detach the obsolete data, department by department (ie.detach the partition, almost instantaneous) and drop or keep the obsolete data. No delete, quite easy to maintain. For each global index, Postgr