How can I make Microsoft.SemanticKernel.Memory.SearchAsync faster? #7420
-
I have a .sqlite db with 2,500 rows that I'm using as a memory store:
when I later perform Is there a way to speed this up, such as using a different memory store? Have I overlooked anything else? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@gusmally I would recommend using other memory store, since current implementation for Sqlite fetches all DB records during search operation which is not the best approach in terms of performance: Please take a look at other available memory connectors: We are also working on new version of memory connectors that will allow to use custom schema and are up to date. This work is happening in feature branch at the moment and experimental version of it will be available soon: |
Beta Was this translation helpful? Give feedback.
@gusmally I would recommend using other memory store, since current implementation for Sqlite fetches all DB records during search operation which is not the best approach in terms of performance:
semantic-kernel/dotnet/src/Connectors/Connectors.Memory.Sqlite/SqliteMemoryStore.cs
Lines 136 to 147 in 305b2ee