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

Sql Cache In-Memory OLTP? #28378

Closed
dauger opened this issue Jul 29, 2015 · 8 comments
Closed

Sql Cache In-Memory OLTP? #28378

dauger opened this issue Jul 29, 2015 · 8 comments
Labels
area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlesware enhancement This issue represents an ask for new feature or an enhancement to an existing one feature-caching Includes: StackExchangeRedis and SqlServer distributed caches
Milestone

Comments

@dauger
Copy link

dauger commented Jul 29, 2015

Has having the option of using Sql Server 2014's in-memory OLTP instead of traditional tables been evaluated? It seems like it might be a good fit for a cache, but I'll admit that I have not done a deep dive on in-memory OLTP's capabilities & restrictions yet.

@glennc
Copy link
Contributor

glennc commented Aug 5, 2015

I don't think we have done any deep analysis on it. It's probably not a bad idea, but not something we have scheduled for our team at the moment.

@twenzel
Copy link

twenzel commented Jan 23, 2018

Is there any news on this topic?
Someone has already implemented a prototype. Even a big player has already adopted this feature for caching.

@aspnet-hello aspnet-hello transferred this issue from aspnet/Caching Dec 13, 2018
@yahorsi
Copy link

yahorsi commented Jun 12, 2019

Seems it might be perfect to use in memory oltp feature in ASP.NET Core Distributed Cache (SqlServer provider)

@xantari
Copy link

xantari commented Mar 12, 2020

Here is my version of SQL In Memory table capable distributed cache implementation with only slight variations for your out of the box SQL Cache provider.

You can view it here: https://github.com/xantari/Microsoft.Extensions.Caching.SqlServerInMemory

@JunTaoLuo JunTaoLuo transferred this issue from dotnet/extensions Dec 3, 2020
@JunTaoLuo JunTaoLuo added feature-caching Includes: StackExchangeRedis and SqlServer distributed caches enhancement This issue represents an ask for new feature or an enhancement to an existing one labels Dec 3, 2020
@JunTaoLuo JunTaoLuo added this to the Backlog milestone Dec 3, 2020
@ghost
Copy link

ghost commented Dec 3, 2020

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

@davidfowl
Copy link
Member

This isn't something we plan to do but feel free to use the implementation from here #28378 (comment)

@xantari
Copy link

xantari commented Mar 29, 2021

@davidfowl Any chance of reconsidering? The only change you need to make to the SQL Server distributed cache provider you deliver today is to change from DateTimeOffset to DateTime2 at the database level and it would work for both in memory tables as well as physical storage based tables.

FYI, a full writeup of this issue is documented here: #17640

@davidfowl
Copy link
Member

That sounds fine, but we don't test it, so we won't know when it breaks.

@ghost ghost locked as resolved and limited conversation to collaborators Apr 28, 2021
@amcasey amcasey added area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlesware and removed area-runtime labels Jun 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlesware enhancement This issue represents an ask for new feature or an enhancement to an existing one feature-caching Includes: StackExchangeRedis and SqlServer distributed caches
Projects
None yet
Development

No branches or pull requests

8 participants