format
use partial index for performance