Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 229 Bytes

File metadata and controls

11 lines (6 loc) · 229 Bytes

tune tricks

TABLESAMPLE - get table row count faster

SELECT 100 * count(*) AS estimate FROM mytable TABLESAMPLE SYSTEM (1);
-- TABLESAMPLE SYSTEM (1) is similiar to "select * from foo where random()<0.01".