简体   繁体   English

多个数据库文件的效率是否比具有多个表的数据库文件低?(SQLite3&Node.js)

[英]Is multiple database files less efficient than one with multiple tables?(SQLite3&Node.js)

As the title says, is it more efficient to use one .db file or is there not a large effect? 就像标题所说的那样,使用一个.db文件是否更有效?或者效果不大? As I assume this would relate to read-write calls I feel it is worth mentioning this will run on a Linux environment. 我认为这与读写调用有关,因此我觉得值得一提的是它将在Linux环境下运行。

Since no one has yet answered, I will answer it by saying multiple files is more efficient in some scenarios as it can cause much slower file transfer/copy speeds. 由于尚无人回答,因此我会说多个文件在某些​​情况下效率更高,因为它可能导致文件传输/复制速度大大降低。 Other than that it seems to be basically the same. 除此之外,它似乎基本相同。

To add to that, multiple database files would also be slightly larger as they would need more file headers 此外,多个数据库文件也将稍大,因为它们需要更多的文件头

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM