我的文件可以有多大? [英] how big can be my file?

查看:104
本文介绍了我的文件可以有多大?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要创建一个文件来保存大型数据库.但是我不知道它最多能有多大.

I''m gonna create a file to save a large database. But I don''t know how big it can be at most. what are the factors to define maximum size for a file?

推荐答案

NTFS的理论限制是16 TB(减去几KB).
The theoretical limit on NTFS is 16 TB (minus a few KB).


您的驱动器空间和操作系统定义了最大文件大小的限制.

假设您正在运行Windows Vista或Windows 7,则文件大小可以达到TB.

不过,这并不是一个真正的C ++问题.
Your drive space, and the the operating system define the limits of the maximum file size.

Assuming you''re running Windows Vista or Windows 7, your file size can go into the terabytes.

This isn''t really a C++ question though.


(我有一段时间没有做很多数据库工作了)
定义文件最大大小的因素是什么?"

您需要计算数据库中一条记录的数据大小. (即每个字段的大小之和)

然后检查数据库的要求是什么,数据库应保留的记录数是多少,然后只需计算所需的最大大小即可.

完成后,您将必须决定处理该数量数据的最佳方法.

最多
(I haven''t done a lot of DB in a while)
"what are the factors to define maximum size for a file?"

You need to compute the data size for one record in your database. (i.e. sum of the size of each field,)

Then your check what are the requirements for your database, what is the number of records your database should hold, then just compute the maximum size you will need.

When that is done, you will have to decide the best method to handle that amount of data.

Max.


这篇关于我的文件可以有多大?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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