group by
in it that is consuming a lot, and an index would solve this problem or at least help.
Is there any way to do this index in view in MySQL?
group by
in it that is consuming a lot, and an index would solve this problem or at least help.
Is there any way to do this index in view in MySQL?
You can not do anything specific like that. If the view is not meeting the performance requirements it has three outputs:
insert/select
) and index it. I know this is not ideal, but it is still an alternative. To use Indexes in View simply update MySQL to version greater than or equal to 5.6.3, from this version MySQL uses the index derived from the physical table.