implement limiting by conditions in the pickle adapter for find_all_models and find_first_model