Also, I am not sur to understand what the var totalRecords nelongs too ?
Is theres a way to get a kind of sheme on php request side, applying a limit in mysql request limit($pq_rpp, $pq_rpp * $pq_curpage ) increase the response time, but completely paralysed filter.
The goal would be to divide the dataModel request in two, a first one who would initially charge the 100 first records, for a super fast result, and a nother one who would get all opther request silently in the background who would feed the dataModel with all other records.
I am not sure to be super clear.