将文件存储在SQL Server或他们保持在文件服务器上? [英] Store Files in SQL Server or keep them on the File Server?

查看:158
本文介绍了将文件存储在SQL Server或他们保持在文件服务器上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我们有数以千计的微软Word文件,Excel文件,PDF文件,文件夹中存储图像等/子文件夹。这些都是由应用程序生成定期,并且可以在该应用程序内的任何时间被访问。当我们升级一下现在我们正在寻找到存储SQL Server 2005中,而不是在所有这些文件。这种情况的原因是基于能够压缩的文件,添加额外的字段来存储这些文件的详细信息和应用指标的必要。

Currently we have thousands of Microsoft Word files, Excel files, PDF's, images etc stored in folders/sub folders. These are generated by an application on a regular basis and can be accessed at any time within that application. As we look to upgrade we are now looking into storing all these documents within SQL Server 2005 instead. Reasons for this are based on being able to compress the documents, adding additional fields to store more information on those documents and applying index’s where necessary.

我想我是什么之后是使用SQL Server作为文档库,而不是使其在文件服务器上,以及你可能在做这方面的经验的利弊。

I suppose what I’m after is the pros and cons of using SQL Server as a document repository instead of keeping them on the file server, as well as any experience you might have in doing this.

我们将使用C#和Windows Workflow做这个任务。

We would be using C# and Windows Workflow to do this task.

感谢您的意见。

修改

有多大的文件?

之间的大小100K = 200K(平均70KB)

多少将会?

在它的周围3.1万个文件的那一刻(从字/ Excel和PDF文件),它可以通过2,600与日俱增。 (增长也将随时间增加)

多少读?

这个是很难量化为我们的老系统/应用使得它很难工作了这一点。

另一种有用的链接指向了一个类似的职位涵盖了这两种方法的利弊。

Also another useful link pointed out on a similar post covers the pros and cons of both methods.

存储的文件在DB VS文件系统 - 优点和缺点

推荐答案

我想兼得

我会保持与唯一的名称重命名的文件,从而更易于管理,我会保持数据库中的所有元数据(文件名,内容类型,位置的文件系统上,大小,描述, 。诸如此类),所以这些文件都通过数据库(间接)访问

I would keep the files renamed with an unique name, thus easier to manage, and i would keep all meta data inside the database (file name, content-type, location on file system, size, description, etcetera), so the files are accessed through the database (indirectly).

优点:


  • 文件都好办;你可以把多个驱动器的混合

  • 数据库可以保留任何数量的元信息,包括您可以搜索对文件的描述。

  • 跟踪对文件访问和其他统计信息

  • 使用各种范式重新排列文件:树(目录结构),标签,搜索或上下文

  • files are easy to handle; you can bring several drives in the mix
  • the database can keep any number of meta information, including file description on which you can search against.
  • keep track on file accesses and other statistic information
  • rearrange the files using various paradigms: tree (directory structure), tags, search or context

您可以在驱动器上有压缩也。你可以备份和速度RAID。

You can have compression on a drive also. You can have RAID for backup and speed.

这篇关于将文件存储在SQL Server或他们保持在文件服务器上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆