Skip to content

[Async] Migrate Query<T> result from List<T> to IAsyncQueryable<T>#1

Merged
anthonyreilly merged 2 commits intoanthonyreilly:dev-asyncbatchfrom
srigaux:develop
Mar 2, 2018
Merged

[Async] Migrate Query<T> result from List<T> to IAsyncQueryable<T>#1
anthonyreilly merged 2 commits intoanthonyreilly:dev-asyncbatchfrom
srigaux:develop

Conversation

@srigaux
Copy link
Copy Markdown

@srigaux srigaux commented Mar 1, 2018

Query iterates asynchronously through Batches to avoid pre-loading all of them before returning the first item.

All test succeeds, but I can't test on a real batched query (not enough data in my salesforce Sandbox)

srigaux added 2 commits March 1, 2018 12:01
Query<T> iterates asynchronously through Batches to avoid pre-loading all of them before returning the first item.
@anthonyreilly
Copy link
Copy Markdown
Owner

Thanks for this, I've been wanting to add async batching, and I'll be able to test it against some large batches. I'll probably need to modify it a bit though to preserve backwards compatibility.

@anthonyreilly anthonyreilly changed the base branch from dev to dev-asyncbatch March 2, 2018 15:17
@anthonyreilly anthonyreilly merged this pull request into anthonyreilly:dev-asyncbatch Mar 2, 2018
@srigaux
Copy link
Copy Markdown
Author

srigaux commented Mar 2, 2018

I thought that as we go to version 2.0, we could break the compatibility.

anthonyreilly added a commit that referenced this pull request Mar 2, 2018
…syncEnumerable/Ix.NET extensions. Modified from PR #1
@anthonyreilly
Copy link
Copy Markdown
Owner

For now I'm trying to minimize any breaking changes - the main reason I bumped to v2.0 was because I was dropping netstandard1.3 compatibility. I'm merging your changes in as a new function (calling it "QueryAsync") and leaving he existing interfaces for now. I've run some tests against large batches and everything looks good so far.

anthonyreilly pushed a commit that referenced this pull request Oct 3, 2018
Use CreateResponse object for return value
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.

2 participants