I have billions of records in database side I want use filter in UI what is better way to filter record on server level or client level only or you have any best way please help me out thanks in advance.