I have a table which totals 350448 records of which I need to perform multiple, repetitive queries through LINQ with Entity Framework.
The amount of these repetitive queries is approximately 1440, I cannot modify the database.
What would be the best way in terms of performance:
- Select all 350448 records and query them on the client
- Perform the 1440 queries against the database
- Attempt to narrow down the data first, then perform the query on the client
I need to be able to do a lookup for 1440 items basically, but I'm aware of the possible performance problems.