Whoever is reviewing the code, if you are wondering what's going on here, the problem was line 1135 above in red, it was adding the returned hits to the cache of hits for an a given ajax call instead of waiting to do it when pulling the results from the 'buffer' where they are temporarily stored as we wait for earlier ajax calls to return if the ajax requests are being sent out in parallel, it is this way so that they are added to the datatable in the order the ajax calls were  sent out to maintain the order in which they were pulled from the DB