Skip to content

Simplify Backburner Usage - #4723

Merged
bmac merged 4 commits into
warp-drive-data:masterfrom
runspired:feat/backburner-overhaul
Jan 13, 2017
Merged

Simplify Backburner Usage#4723
bmac merged 4 commits into
warp-drive-data:masterfrom
runspired:feat/backburner-overhaul

Conversation

@runspired

@runspired runspired commented Dec 21, 2016

Copy link
Copy Markdown
Contributor

TL;DR spin up less, schedule less, batch more things, cleaner profiles :)

In a query returning 238 records 34 of which are primary records, this resulted in:

  • ember’s run.schedule 105 times => 2x
  • ember’s run.join 2 times => 1x
  • ED’s schedule 274 times => 2x
  • ED’s join 274 times => 2x

Right now this fails on the tests around support for preloading relationships when doing findRecord, digging in on that.

Also includes some additional instrumentation stuff that's part of a different PR + some additions to that instrumentation I'll need to back out.

I appear to have pushed this far enough we get failing tests around pushing hasMany's with invalid values. I think something likely just ended up dropping out of the same run loop, investigating.

There's still a little bit of low hanging fruit on this.

@runspired runspired changed the title [WIP] backburner overhaul Simplify Backburner Usage Dec 21, 2016
@runspired

Copy link
Copy Markdown
Contributor Author

cc @bmac for final review / merging

@bmac
bmac merged commit 06dbc97 into warp-drive-data:master Jan 13, 2017
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.

3 participants