fixed range lookups on foreignkey fields