Compare index management in MongoDB and Cassandra so Clojure query code matches each database model.
This section bridges the chapter overview and the detailed lessons below. For Java engineers, the practical question is how to handle MongoDB and Cassandra index management in Clojure code at the database boundary.
| Review focus | What to check |
|---|---|
| MongoDB | Indexes support flexible document query patterns. |
| Cassandra | Primary-key and clustering design shape the query model. |
| Clojure code | Avoid query helpers that hide index assumptions. |
Use the child lessons to move from concept to implementation. The section goal is to make the trade-off visible before the code hardens around a database assumption.