Does a library exist in .net that can perform queries server-side?
The reason I ask is even though I’ve used many tricks to maximize database performance such as SELECTing and JOINing on the PRIMARY, using INTs as the PRIMARY, fixed LENGTHs, UPDATEing instead of DELETEing, no NULLs for columns to be UPDATEd, and UPDATEing tables by using an INT “state” column (such as “active”, “inactive”, etc), but latency times go from <10ms to >100ms just by using a few SELECTs with 1 JOIN each using the techniques above.
I’m going to start using the server to JOIN instead because I’ve had lots of success with driving lag back down <10ms doing so, but I’m wondering if there’s already a library or built-in feature that can do this.
An example would be breaking a single JOIN query into multiple queries:
SELECTa specific row from atable1based upon thePRIMARYkeySELECTa specif row fromtable2based upon thePRIMARYlocated intable1
And the complexity only increases from there. Does such a library/feature exist for .net?
Many thanks in advance!
It sounds like you’re looking for something like the ADO.NET Entity Framework. Using LINQ, you can query data in code in such a way that the query expressions are converted to SQL and optimized (as best as possible) to get the data you’re querying.