Schema design anti-patterns are inefficient ways to structure your database schema. They can create unnecessary complexity and cause performance issues. Recognizing and avoiding schema design anti-patterns can help create applications with better performance.模式设计反模式是构建数据库模式的低效方法。它们会造成不必要的复杂性并导致性能问题。识别和避免模式设计反模式可以帮助创建具有更好性能的应用程序。
Get Started开始使用
To learn more about schema design anti-patterns, see the following pages:要了解有关模式设计反模式的更多信息,请参阅以下页面:
$lookup操作。这增加了查询复杂性并降低了查询性能。 |
Details详情
The MongoDB Atlas Performance Advisor (available for M10 clusters or higher) and MongoDB Compass Performance Insights identify schema design anti-patterns in your database. It is important to understand the Atlas anti-pattern warnings in order to properly correct the issues and prevent the use of anti-patterns.MongoDB Atlas性能顾问(适用于M10或更高级别的集群)和MongoDB Compass性能洞察可识别数据库中的模式设计反模式。了解Atlas反模式警告非常重要,以便正确纠正问题并防止使用反模式。
View Schema Suggestions in Performance Advisor在性能顾问中查看架构建议
In MongoDB Atlas, go to the Clusters page for your project.在MongoDB Atlas中,转到项目的“集群”页面。
WARNING: Navigation Improvements In Progress导航改进正在进行中 We're currently rolling out a new and improved navigation experience. If the following steps don't match your view in the Atlas UI, see the preview documentation.我们目前正在推出一种新的、改进的导航体验。如果以下步骤与Atlas UI中的视图不匹配,请参阅预览文档。
If it's not already displayed, select the organization that contains your desired project from the Organizations menu in the navigation bar.如果尚未显示,请从导航栏的“组织”菜单中选择包含所需项目的组织。If it's not already displayed, select your desired project from the Projects menu in the navigation bar.如果尚未显示,请从导航栏中的“项目”菜单中选择所需的项目。If it's not already displayed, click Clusters in the sidebar.如果尚未显示,请单击侧栏中的“集群”。
Click the replica set where the collection resides.单击集合所在的副本集。
If the replica set is part of a sharded cluster, first click the sharded cluster containing the replica set.如果副本集是分片集群的一部分,请首先单击包含副本集的分片集群。
Learn More了解更多
For recommended schema design patterns, see the following: Schema Design Patterns and Apply Design Patterns.有关推荐的模式设计模式,请参阅以下内容:模式设计模式和应用设计模式。