Add Index for scene_id and Url column size changes #1571
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This changes adds an index to the scene_id on the scene table.
It also increases the size of the cover_url and scene_url
I added an index to the scene.scene_id when I first started using xbvr and loaded up every site with about 35-40K scenes (have since cut that back). I had slow response that was solved by adding an index to scene_id in the scene table. There didn't seem to be any need to submit it, but with recent reports of slow responses it may help. Hard to know, as the reports didn't really provide much detail. However, with plenty of queries with the scene_id, it is probably beneficial regardless.
The change also increases the sizes of cover_url and scene_url. I had one case of each over the default column size limit in mysql. They were both cases of just one character and they were one custom sites, so this isn't a big problem, although I think there has been one or two others with column size issues, so I have included them as well.