Postgresql – Get all data COUNT fastest from large table based on condition
I have the table with 10TB of data. I want to perform the COUNT(1)/COUNT(*) to check the EXACT COUNT between main table and archive table. I tried following SQL's but didn't get optimal solution, queries keep running for more than…