SharePoint 2013作为企业级数据存储软件平台,它的逻辑结构就如同我们的PC机存储文件一般,需要有PC机、存储盘、文件夹、文件等结构,最终的文件是存储在文件夹中,那么,问题来了,SharePoint

2013的软件平台的逻辑结构是什么呢?


大家请看下图,摘自SharePoint授课课件。



shared nothing架构 sharepoint架构_shared nothing架构




从上图中,可以看出SharePoint2013的逻辑结构由以下组成:



SharePoint Farm:一个SharePoint

Farm由运行一个或者多个Web-front-end、Application

Server组成。

Farm Configuration DB:用来存储Web

Application和Service Application的详细信息的。一个Farm中仅有一个farm

configuration database。

Service Application:用来提供给有需求的Web

Application的,比如Search Service,Managed

Metadata Service等等。

Web Application:SharePoint中一个Web

Application可以有一个或者多个Site Collection。

Content Database:每个Content

Database都运行在SQL Server中,用来存储Site

Collection中的数据内容的。一个Content Database仅仅能与一个Web

Application进行关联。

Site Collection:有一个或者多个SharePoint

Sites组成。

Site:SharePoint

sites是一个site collection的层级结构的一部分,当一个site

collection被创建的时候,自动就会有一个top-level site。当创建一个SharePoint

site的时候,实际与top-level site的关系是父与子的关系。



上述容器级别的逻辑结构介绍完成之后,我们接下来再介绍Site以下级别的结构情况:



shared nothing架构 sharepoint架构_上传_02





List,是一个统称,泛指所有的List或者Library。

Folder,用来存储Document和Attachment的Container。

Item,是一个统称,泛指所有的Content,比如Item,Document,Page等。



这里,纠正2个误解,好多人都以为SharePoint

Site Collection中默认的DocumentLibrary下上传的Document是存储在该Library中,实际上是存储在该Library的root

folder中;另一个误解是:好多人以为item上attach的file是存储在item上的,这个理解也不对,attached的file与item的是关联关系,实际存储在以这个item的ID为名字的Folder里。


下面我们来借助微软推荐的SharePointManager Tool来验证一下该结论。


Default Document Library下上传的Document存储在Root
Folder
中:



在Document Library根目录下上传文档,如下图所示:


shared nothing架构 sharepoint架构_Web_03





用SharePoint Manager Tool访问,查看其文档的具体存储位置,如下图所示:




shared nothing架构 sharepoint架构_shared nothing架构_04




List下的Item上传的附件存储在以Item
ID
为名字的Folder中。



在Task List中new

a task,同时attach一个文件,如下图所示:




shared nothing架构 sharepoint架构_List_05



检查该Item的ID,如下图所示:




shared nothing架构 sharepoint架构_List_06





用SharePoint Manager Tool访问,查看其文档的具体存储位置,如下图所示:




shared nothing架构 sharepoint架构_Web_07