What is the difference between Sitecore's core, master, and web databases?

江枫思渺然 提交于 2019-12-03 14:56:58

问题


What is the difference between Sitecore's core, master, and web databases?


回答1:


I recommend you look at the Launch Sitecore site to understand more about the CMS.

From the page on Sitecore Architecture:

Master

The Master database is the authoring database - it contains all versions of any content or assets.

Core

The Core database is all Sitecore settings, as well as the tables containing the .Net membership provider (i.e. users/roles contained in the Sitecore repository)

Web

The Web database is only the latest published version, and the content that is driving the live web site. Therefore it is a subset of the master database, optimised for size and speed. When content is published, or goes through the publishing task of a workflow, the latest content version is copied from the master to web database.

Of course, in an Enterprise deployment, you may have multiple Sitecore instances, which may share DBs (or not)




回答2:


  • Master: Contains all versions of all items. This is the database that content authors interact with, and is the default database used by the Sitecore Content Ediitor.
  • Web: This contains only the current versions of items. This is the database that supports the live website.
  • Core: This database has two purposes:
    1. It contains definitions for the Sitecore user interface (Content Editor, Page Editor, etc.). This is where you would go to add, for example, a new Right-click option to the Content Editor or a new ribbon button to the Page Editor.
    2. It contains the ASP.NET membership tables that drive authentication and security.



回答3:


Some great answers here but it's worth a clear note that the Web database is the default publishing target and is not set in stone. You can rename it to whatever you wish as well as have multiple publishing targets similar to 'Web'.

e.g. We have a Sitecore instance with two websites (website and intranet), thusly the Master database contains all the items for both sites. For publishing we have two targets 'Website' and 'Intranet' that are hosted by different SQL servers.

Ultimately our connections include: Core; Master; Website; Intranet (the latter two being copies of the original 'Web' database of course)



来源:https://stackoverflow.com/questions/13342755/what-is-the-difference-between-sitecores-core-master-and-web-databases

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!