SK: Use Batch for UpsertAsync overload that takes multiple records in Semantic Kernel Vector Data

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Dotnet Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Right now the Microsoft Semantic Kernel Vector Data calls the UpdateOne method inside a loop in the overload that takes multiple records. This is poor for performance and instead a Batch operations should be performed with all the update operations. As it targets a single collection this should only required a single batch (large batch sizes are handled automatically inside the driver).

      A PR for this already exists but it needs rebasing as things have changed on the preb2 branch.

      https://github.com/microsoft/semantic-kernel/pull/11406

            Assignee:
            Damien Guard
            Reporter:
            Damien Guard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: