Skip to content

Changelog

New updates and improvements at Cloudflare.

Back to all posts

D1 Insights index recommendations

D1 Insights now recommends indexes for your D1 databases. Each recommendation includes a CREATE INDEX statement, the queries it is expected to speed up, and usage metrics for those queries.

You can turn recommendations on or off in the dashboard, with the Cloudflare CLI, or with the API.

Review recommendations on the Metrics tab of a database in the dashboard, or list them with the Cloudflare CLI:

npx cf@latest d1 insights recommendations

For more information, refer to Index recommendations.