Gouache painting of two plain glass jars of beans filled to slightly different levels with a vermilion scoop between them

FORCE_DEFAULT_CARDINALITY_ESTIMATION: A Simple Explanation

FORCE_DEFAULT_CARDINALITY_ESTIMATION is a query hint that gives one query the default cardinality estimator, even when the database is set to the legacy one. This post builds a demo table, compares the row estimates of both models with the real count and shows how to prove which model a plan used. It also names the opposite hint and the permission difference.

Read More