You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATEINDEXtag_name_indexON node_tag (name DESC)
USING BTREE;
or some such. Apparently MyISAM and InnoDB only support BTREE, so that doesn't need to be specified, and ASC/DESC is presently ignored by MySQL so that can be omitted as well.
Unsure how to add index using Rails migrations, but that'd probably be best.
This will optimize string searches against tags in the database. That should help autocompletion by speeding up the time to sort through the strings in the tag table.
Here are the existing indices -- and I think we'll be relying on the solr search system for tag searches in the future, so I think we'll be OK to close this either way -- but curious if the name-based index here does the trick:
Maybe by selecting fewer fields and/or sorting differently?
The text was updated successfully, but these errors were encountered: