On Mon, 22 Apr, 2024, 1:34 am Ron Johnson, <ronljohnsonjr@xxxxxxxxx> wrote:
On Sun, Apr 21, 2024 at 2:58 PM yudhi s <learnerdatabase99@xxxxxxxxx> wrote:the partition drop from parent is taking longer as it scans all the partitions of the child tableDoes the relevant supporting index exist on the child table?
Yes all the child tables have foreign keys indexed.
Again I don't want to divert the main topic(trigger creation) . I will provide the exact test case how it puts exclusive lock and runs longer as scans all child partitions (which must be using indexes though) but as the number of partitions increase the time of drop partitions increases.