FAQ
General
What is CQL?
What databases does CQL support?
Is CQL production-ready?
Models
Should I use class or struct for models?
class or struct for models?Why is my primary key nullable?
How do I add a field that isn't in the database?
Queries
How do I write raw SQL?
Why is my query returning an empty array?
How do I debug what SQL is being generated?
Relationships
When do I use belongs_to vs has_many?
How do I eager load associations?
Migrations
How do I add a column to an existing table?
How do I rollback a migration?
What if a migration fails halfway through?
Performance
How do I avoid N+1 queries?
Should I add indexes?
Troubleshooting
"Connection refused" error
"Table does not exist" error
"Validation failed" but I don't know why
Best Practices
Should I use save or save!?
save or save!?When should I use transactions?
How do I test my models?
Last updated
Was this helpful?