I have a largisch database (~6G) which I use in H2 2.1.214 embedded mode on an NVME SSD. I use the JDBC call
rsIdx = con.getMetaData.getIndexInfo(catalog,schema,table,false,false)
to get the indexes for a single table (which is by far the largest in the whole database) that contains about 3.6 million rows. The call takes about 14 seconds to return the index es/segments for the table. On a not-so-fast older SSD the same call takes ~30 seconds.
Is there a reason that this takes so long? Is there a more efficient way to determine which indexes are present on a table?
Thanks,
Silvio