This is something I was wondering since I'm planning to partition a aggregation table with 10 mil records where rebuilding indexes cause table locks for some time.
Because partitions are bluntly put just multiple tables that have their own index and our system only inserts new records into a single partition that is kept small (Only data from the current day is added).
So when rebuilding or adding indexes will the table lock occur on all partitions or only the partitions it is rebuilding at that moment?
Also because you have to add your partition key to the primary key are there other troubles that I might run into when partitioning a existing table?