Super-long planningTimeMicros value

This bit from a “slow query” log message sort of says it all:

"planningTimeMicros":2114562

That’s 2.1 seconds of “planning time”!

Does anyone know what might be causing this behavior?