How to optimize a simple join
I have table "assets":
I have table "assetmeta":
I have a view "getpublicassets":
Then I run it:
When I EXPLAIN ANALYZE it says it is performing a loop for each row and it's slow. What can I do to optimize my view?
Tried adding an index:
Doesnt seem to matter
I have table "assetmeta":
I have a view "getpublicassets":
Then I run it:
SELECT * FROM getpublicassets LIMIT 100When I EXPLAIN ANALYZE it says it is performing a loop for each row and it's slow. What can I do to optimize my view?
Tried adding an index:
Doesnt seem to matter
