Process Flow - Index management
Start: Query needs index
Check existing indexes
Index exists?
Yes→Use index to speed query
No
Create new index
Index builds in background
Query uses new index
End
When a query needs an index, Firebase checks if it exists. If not, you create it, then the query uses it to run faster.