6

I'm working with Restier which sits on top of the Entity Framework and Web API. When I make a call with a $top operator:

/entitySet?$top=10

The resultant query captured by the interceptor debugger is as follows:

LOADMEMORYQUERY 'SELECT * FROM [entitySet] /*EntityFramework Load MemoryQuery*/';MEMORYQUERY [entitySet] 'SELECT * FROM [entitySet] LIMIT 10'

Which ends up running the first query against the DB of:

SELECT * FROM [entitySet]

How do I avoid the LOADMEMORYQUERY call? It is a very large dataset and I would prefer to only pull from the DB what I need.

tiberriver256
  • 519
  • 5
  • 14

1 Answers1

-2

It's radical answer, but if you want to optimize performance, it would be better to avoid using OData and most probably EF

Aquila
  • 169
  • 1
  • 9