double-stacking spears - pretty much the default setting for my defences. Indeed I'll sometimes triple-stack them, pikes, spears and halberds.

I keep sword, horse and general units back though and use them only when the attackers are flagging.