Changed record filter by date

implements bp optimize-date-filtering

Change-Id: I6d4157992613a8188a94e3ad041ebd36768b0077