Repository navigation
Database Fix - #2461
Database Fix#2461
Conversation
|
|
fd08adc to
4c0ff05
Compare
|
The last changes that I identified have been added to this pull request. If there are any other missing database constraints just let me know and I'll be happy to add them. |
|
I've added a comment even if not related specifically to this change, but given we are adding indexes I wonder if we should check we have everything in place. For instance trans_time is used for Items data range selection and there is no index and probably no foreign key neither. |
4c0ff05 to
2e042c3
Compare
2e042c3 to
442af20
Compare
|
I've applied an index to three of the timestamps I've found. That should certainly improve the performance of any filters or queries that involve the timestamp. |
|
Thanks for the work @SteveIreland. I've added a date index to expenses table, tested and merged. |
|
Not sure if adding indexes for singe fields will always help us out here. We probably need to check which queries are ran and then explain them to see which (combined) indexes we need to create. |
This adds a couple of missing constraints. I haven't been able to test with the most recent master yet because of the bintray issues so please don't merge it yet.