Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cosmos: Optimize more queries that could use ReadItem #20693

Closed
3 tasks
AndriySvyryd opened this issue Apr 20, 2020 · 0 comments · Fixed by #34187
Closed
3 tasks

Cosmos: Optimize more queries that could use ReadItem #20693

AndriySvyryd opened this issue Apr 20, 2020 · 0 comments · Fixed by #34187
Assignees
Labels
area-cosmos area-perf area-query closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. punted-for-6.0 type-enhancement
Milestone

Comments

@AndriySvyryd
Copy link
Member

AndriySvyryd commented Apr 20, 2020

  • Match other unitary result methods in addition to FirstOrDefault()
  • Match property access in addition to EF.Property
  • Match any order of PK conditions
@ajcvickers ajcvickers added this to the Backlog milestone Apr 24, 2020
@ajcvickers ajcvickers modified the milestones: Backlog, 6.0.0 May 6, 2021
@ajcvickers ajcvickers assigned smitpatel and unassigned AndriySvyryd May 6, 2021
@ajcvickers ajcvickers modified the milestones: 6.0.0, Backlog Jul 30, 2021
@smitpatel smitpatel removed their assignment Nov 19, 2021
@ajcvickers ajcvickers modified the milestones: Backlog, 9.0.0 May 8, 2024
ajcvickers added a commit that referenced this issue Jun 7, 2024
Part of #20693
Part of #33893

There is a lot left to do here, but I'm making a break here to get reviews before it goes too far.

Major changes here are:
- Discover and record properties used to form the JSON `id` in one place.
- Use this to generate ate `id` values without tracking an instance. (Makes no-tracking work, needed for Reload.)
- Be better at detecting only detecting patterns we can later translate.

Next up: be better at detecting non-Find query patterns that we can translate.
ajcvickers added a commit that referenced this issue Jun 7, 2024
Part of #20693
Part of #33893

There is a lot left to do here, but I'm making a break here to get reviews before it goes too far.

Major changes here are:
- Discover and record properties used to form the JSON `id` in one place.
- Use this to generate ate `id` values without tracking an instance. (Makes no-tracking work, needed for Reload.)
- Be better at detecting only detecting patterns we can later translate.

Next up: be better at detecting non-Find query patterns that we can translate.
ajcvickers added a commit that referenced this issue Jun 14, 2024
Part of #20693
Part of #33893

There is a lot left to do here, but I'm making a break here to get reviews before it goes too far.

Major changes here are:
- Discover and record properties used to form the JSON `id` in one place.
- Use this to generate ate `id` values without tracking an instance. (Makes no-tracking work, needed for Reload.)
- Be better at detecting only detecting patterns we can later translate.

Next up: be better at detecting non-Find query patterns that we can translate.
ajcvickers added a commit that referenced this issue Jun 15, 2024
Part of #20693
Part of #33893

There is a lot left to do here, but I'm making a break here to get reviews before it goes too far.

Major changes here are:
- Discover and record properties used to form the JSON `id` in one place.
- Use this to generate ate `id` values without tracking an instance. (Makes no-tracking work, needed for Reload.)
- Be better at detecting only detecting patterns we can later translate.

Next up: be better at detecting non-Find query patterns that we can translate.
ajcvickers added a commit that referenced this issue Jun 15, 2024
* Support ReadItem for no-tracking queries

Part of #20693
Part of #33893

There is a lot left to do here, but I'm making a break here to get reviews before it goes too far.

Major changes here are:
- Discover and record properties used to form the JSON `id` in one place.
- Use this to generate ate `id` values without tracking an instance. (Makes no-tracking work, needed for Reload.)
- Be better at detecting only detecting patterns we can later translate.

Next up: be better at detecting non-Find query patterns that we can translate.

* Updated version, based on Andriy's comment.

* Code review updates.
roji added a commit to roji/efcore that referenced this issue Jul 4, 2024
roji added a commit to roji/efcore that referenced this issue Jul 4, 2024
roji added a commit to roji/efcore that referenced this issue Jul 6, 2024
@roji roji added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Jul 6, 2024
roji added a commit to roji/efcore that referenced this issue Jul 8, 2024
roji added a commit to roji/efcore that referenced this issue Jul 8, 2024
roji added a commit to roji/efcore that referenced this issue Jul 8, 2024
roji added a commit to roji/efcore that referenced this issue Jul 8, 2024
roji added a commit to roji/efcore that referenced this issue Jul 8, 2024
roji added a commit to roji/efcore that referenced this issue Jul 8, 2024
@roji roji closed this as completed in 041f4f2 Jul 9, 2024
@ajcvickers ajcvickers modified the milestones: 9.0.0, 9.0.0-preview6, 9.0.0-preview7 Aug 21, 2024
@roji roji modified the milestones: 9.0.0-preview7, 9.0.0 Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-cosmos area-perf area-query closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. punted-for-6.0 type-enhancement
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants