You need to sign in to do that
Don't have an account?

Most efficient place to filter data?
I recently did PD2 and one of the questions I'm stuck on. If you had a large data set that you wanted the user to be able to filter which is most efficent:
1. Rerun the SOQL each time with the new data filters
2. Hold the whole data set in memory and use Apex to filter
3. Use visualforce tags to filter - can't remember which ones
I went for hold in memory and use apex. Can't find any documentation on best approach for performance. any help?
1. Rerun the SOQL each time with the new data filters
2. Hold the whole data set in memory and use Apex to filter
3. Use visualforce tags to filter - can't remember which ones
I went for hold in memory and use apex. Can't find any documentation on best approach for performance. any help?
2. Hold the whole data set in memory and use Apex to filter
1. Rerun the SOQL each time with the new data filters -- Problem is you can't hold more than 10000 records
3. Use visualforce tags to filter - can't remember which ones -- View state might be an issue
Doesn't say anyting about it being the most efficent option, but its the best fit.