You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if it would be possible to cache the results of the SQL query so it doesn't need to be recompiled every time. I'm not sure if the performance boost on the client side would be worth it. But I would be surprised if it wasn't worth it.
Just an idea. I'm not sure how it would be implemented.
The text was updated successfully, but these errors were encountered:
Just to clarify, you mean cache the generated SQL statement (e.g. SELECT ... FROM ...) for a given LINQ/Lambda expression?
Should be possible, I'll just need to figure out a way to verify the "uniqueness" of a query based on the expression tree... Run time variables might be a problem too, but I can try and have a go at it.
Yes, I was thinking of the resulting SQL statement. It would be interesting to do perf tests on it first to see how fast your lib goes to begin with. I imagine it wouldn't be that fast since you have to do all the work just to get to the SQL Statement.
That is why I was wondering if it would be possible, or if it is even worth it.
Here's some bench marks that it could be based off of to see where Linq2Dapper resides:
I'm not sure if there would be a more elegant way to do it in C#.
I wish I had more bandwidth to help out a lot more with this! Seems like a great project! Get the full static typing like other heavy projects but close to the perf Dapper! I would think that caching the result would get it really close.
I was wondering if it would be possible to cache the results of the SQL query so it doesn't need to be recompiled every time. I'm not sure if the performance boost on the client side would be worth it. But I would be surprised if it wasn't worth it.
Just an idea. I'm not sure how it would be implemented.
The text was updated successfully, but these errors were encountered: