Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
.Net: instead running two queries now a single query can do the same …
…thing (#6705) ### Motivation and Context 1. Instead of executing two SQL queries, a single query can do the same thing. 2. Performance improvement ### Description Previously the **InternalUpsertAsync** method was executing two sql query by calling two individual methods - First **UpdateAsync** and then second **InsertOrIgnoreAsync**. The new method uses the INSERT OR REPLACE statement to either update an existing row or insert a new one based on the unique collection and key combination ### Contribution Checklist - [ ] The code builds clean without any errors or warnings - [ ] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [ ] All unit tests pass, same unit test can detect the bug - [ ] I didn't break anyone 😄 --------- Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com>
- Loading branch information