Add an index on domain_id
Add an index on domain_id

This will allow the query planner to use the index when searching for
entries, rather than doing a sequential table scan.

usingnamespace/usingnamespace