How does Grails handle indexing in the database? I feel like if I try to do something like Person.findByName("KPthunder") it is going to have to search through all the records given that there is no index on the name field.
Do we have to add indexes to the columns we want to search through after grails makes the database?
All my searches are turning up are things about Grails index actions on controllers (including a search through my PDF copy of “Grails: A Quick Start Guide.” I feel like I am overlooking something incredibly simple here…
Yes, we need to add indexes explicitly. They will definitely be used by DBMS, when appropriate.