A failure is corrected when we search  data by pattern in a Zset with a ...

...lot of rows.

Example:

romcmp_model.Carephone.query.like(alarm_code='*47*').filter(operational_status=1).order_by('idCarephone').limit(0,10).all()