How do you interpret a query’s explain plan?

I shudder whenever I see comments that full tablescans are bad and index access is good. Full table scans, index range scans, fast full index scans, nested loops, merge join, hash joins etc. are simply access mechanisms that must be understood by the analyst and combined with a knowledge of the database structure and the … Read more

What is a “Bitmap heap scan” in a query plan?

The best explanation comes from Tom Lane, which is the algorithm’s author unless I’m mistaking. See also the wikipedia article. In short, it’s a bit like a seq scan. The difference is that, rather than visiting every disk page, a bitmap index scan ANDs and ORs applicable indexes together, and only visits the disk pages … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)