Does field ordering in a MongoDB document affects aggregation query performance?

前端 未结 0 1880
南笙
南笙 2021-02-02 05:27

MongoDB by default return fields in order of their insertion.

In MySQL, normally we keep:

  • Primary key columns first
  • Foreign key columns next.
  • <
相关标签:
回答
  • 消灭零回复
提交回复
热议问题