- Drops some unused indexes - Applies a computed index to timestamp columns - Applies a partial index for expired pieces - Uses BETWEEN to avoid some datetime calls - Filters expired piece search by those that aren't NULL
This change fixes UseSerialNumber and case when given serial number doesn't exists in DB.