r/SQL • u/Afraid-Nature848 • Jun 05 '26
MySQL Optimizing Queries
I am trying to create a view having like around 120 plus columns. Data is being pulled from multiple tables, but the amount of data is around 2.5k rows max and output row count is 2200. Currently its taking 10 seconds for it to get computed. Indexes are added. The main view is being queried from several other views. But I am not sure how to increase the performance. I am quite new to SQL optimization. I am using MySQL Mariadb. Any insights will be helpful
13
Upvotes
View all comments
Show parent comment
1
u/Alkemist101 Jun 08 '26
Totally which is why you need to ask carefully curated questions and engage. Never the less, under the right conditions of query AI will do a fine job. It's certainly no less trustable than reddit answers!