Skip to content

Update ConsumptionHistorySource.scala - #112

Open
daprof1 wants to merge 3 commits into
patsonluk:masterfrom
daprof1:patch-1
Open

Update ConsumptionHistorySource.scala#112
daprof1 wants to merge 3 commits into
patsonluk:masterfrom
daprof1:patch-1

Conversation

@daprof1

@daprof1 daprof1 commented Nov 28, 2018

Copy link
Copy Markdown
Contributor

@patsonluk
Ok this is my test code that super optimizes this by saving the consumption history as a single SQL chunk instead of thousands (and thousands) of separate SQL inserts. Had to create a new table for this, felt you should take a look and implement it as you see fit. Saved 150-200 seconds of time from every cycle for me

@patsonluk 
Ok this is my test code that super optimizes this by saving the consumption history as a single SQL chunk instead of thousands (and thousands) of separate SQL inserts. Had to create a new table for this, felt you should take a look and implement it as you see fit. Saved 150-200 seconds of time from every cycle for me
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant