I am working on an application which will have approximately 1 million records. To fetch data I have two options:
- Join 10-12 tables (indexed) at run time and get the result
- Create views from these tables. Query the view at run time instead of joining tables. I think MySQL won't let me use indexes on views.
Currently for testing I have just 10-20 records and both the options are taking similar time. But when the real time data will be loaded, which option would give better performance?