English 中文(简体)
同一表格中的有效存储件件件和项目数据?
原标题:Efficient storing item info and item data in the same table?

我有一个网站,用户可以把图像与几个信息领域一道拯救图像。 这些图像作为双元数据储存在与图像信息的其他部分相同的表格中。 到目前为止,标准相当高。

现在,用户应当能够上载文件,更详细地描述图像,以及图像的其他部分及其信息。 Size ~2MB per document。

www.un.org/Depts/DGACM/index_spanish.htm 我的问题是:。 如果我把这一文件(综合数据)放在与其余图像相同的表格中,或者如果我只开一个新桌,只拿这些文件。 当然,在图像表中,文件表格中将提及该文件。

I have a search function joining a couple of tables, including the image table, when searching for images. I need to know if there s a difference in efficiency between these two solutions.
I always fetch the document data separately but if I don t win anything in having the documents in a separate table I ll just put it with the rest of the image info.

我要求这样做,因为我没有真正知道服务器在加入和搜索时如何处理桌子。

I have about 10´000 users with a maximum of 10 images per user. (ASP.NET - SQL Server)
(I m not asking if I should store documents in the database, but how ;)

提前感谢!

zalk

Edit
Example 1:
columns in imageTable - id, title, dateAdded, image (binary data), document (binary data)

寻找特定用户的物品,我将加入用户版、图像版和选择名称,如果图像等于用户。

www.un.org/Depts/DGACM/index_spanish.htm 因此,如果文件形象化,业绩就会有任何差别。 表或表格:

最佳回答

有关形象的元信息是有关形象的信息。 因此,它应当成为同一表格的一部分。 虽然如果元数据与图像分开使用,可能会有争论。

此外,储存图像档案存放在数据库中的(相对)途径并非罕见。 这样做的好处是,图像储存的方式可以静态地加以利用;而是从数据库中查询,由伙伴关系解释。

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签