Get rid of Tags table in SQL Server Memory #781
marcominerva
started this conversation in
2. Feature requests
Replies: 1 comment 2 replies
-
@dluc any tought on this? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently,
SqlMemoryDb
saves the tags as JSON in the KMMemories table, then it denormalizes each value in the KMMemoriesTags_{index} table.Instead of this approach, we could just use the KMMemories table, leveraging the native JSON support. For example, if we want to filter based on the value of a UserId tag, the query will be like the following, without the need to use the Tags table:
JSON support is available in SQL Server 2016 and later (and of course in Azure SQL Database), so I think that nowadays it shouldn't be a problem (the previous 2014 version has already ended the Mainstream support in 2019 and the Extended support will end this year).
Beta Was this translation helpful? Give feedback.
All reactions