index on sql database to allow hass to startup quickly with a large sql database#8255
Conversation
|
@pvizeli Hi - I believe I've seen you deal with the issue of a stuck cla-bot before? If not, do you know how I can go about getting the bot working again? edit Looks like you tried - thanks! But it is still stuck :( |
There was a problem hiding this comment.
This won't work. You need to create a new migration version. Otherwise people that already had this migration (=everyone) will not get it applied.
There was a problem hiding this comment.
@balloob thanks! Looking at it, is the correct way to acheive this:
- Update models.py#SCHEMA_VERSION to 3
- Change migration.py#_applyUpdates to include a new block
elif new_version == 3:with my index migration
Anything else?
|
Ah - looks like my email wasn't correctly set in the first round of commits. What would be the best way to deal with this? I presume this is why CLA-bot is stuck? |
|
We can merge it, you need no change for cabot |
|
Can you please squash all your commits and make sure they have the right email attached. Otherwise the CLA bot won't pass for the release either. |
|
@balloob Done! |
|
Awesome! Cherry-picked for 0.48 |
Description:
hass starts up very slow with a large SQL database. This adds an index to the states table to help (tremendously) with startup speed.
Related issue (if applicable): fixes #8176
Checklist:
If user exposed functionality or configuration variables are added/changed:
If the code does not interact with devices:
toxrun successfully. Your PR cannot be merged unless tests pass