map and records view optimizations