QUERY PLAN
Limit (cost=1399.42..1399.43 rows=1 width=109)
-> Sort (cost=1399.42..1399.43 rows=1 width=109)
Sort Key: d.updated_at DESC
-> Group (cost=1399.40..1399.41 rows=1 width=109)
Group Key: d.id
-> Sort (cost=1399.40..1399.41 rows=1 width=109)
Sort Key: d.id
-> Nested Loop (cost=0.00..1399.39 rows=1 width=109)
Join Filter: (d.id = dt.object_id)
-> Seq Scan on tbl_term_taxonomy_relationships dt (cost=0.00..1381.69 rows=1 width=4)
Filter: ((term_id = 7) AND (taxonomy_id = 115))
-> Seq Scan on tbl_documents d (cost=0.00..12.31 rows=431 width=109)