Assuming I need to pick all the tables with data in them (at least one row)
What’s the best/fastest way to figure that out ?
naive approach would be getting all keyspaces and tables names
SELECT keyspace_name, table_name, compaction FROM system_schema.tables
and run this on each:
SELECT * FROM {keyspace}.{table} LIMIT 1
it might become a bit problematic when there’s lots of tombstones involves, and the harmless looking query might become quite slow or event timeout.
is there a better way getting this information ?