3 ms·
If your ORM is downloading all of your data and querying client side, then your ORM "is doing it wrong". Entity Framework and any other Linq to data provider t
by scarface74 9y ago
If your ORM is downloading all of your data and querying client side, then your ORM "is doing it wrong".
Entity Framework and any other Linq to data provider translates the Linq expression to the native language of the source data and does it server side.
- pjmlp 9y agoI know EF, which is why my comment also mentions "code that is even more convoluted that the SQL one and thus with less performance". LINQ only allows for a fraction of what is possible with SQL, and good luck having the best queries generated out of it, if the RDMS doesn't happen to be SQL Server.
- scarface74 9y agoActually my DMS is sometimes Mongo and the Mongo driver does pretty well at translating Linq to Mongo Query using the aggregation framework. It all depends on the talent of the authors of the drivers.