最好的小数据库? [英] best small database?

查看:80
本文介绍了最好的小数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有使用数据库应用程序的经验。

这个数据库可能只包含几百项,

包括文本文件和二进制文件。


我想在合理的范围内使用纯Python解决方案。


建议?


谢谢,

Alan Isaac

I have no experience with database applications.
This database will likely hold only a few hundred items,
including both textfiles and binary files.

I would like a pure Python solution to the extent reasonable.

Suggestions?

Thank you,
Alan Isaac

推荐答案

* David Isaac(2006-09-11 14:23 +0100)
* David Isaac (2006-09-11 14:23 +0100)

我没有数据库应用程序的经验。

这个数据库可能只包含几百项,

包括文本文件和二进制文件文件。


我想在合理的范围内使用纯Python解决方案。
I have no experience with database applications.
This database will likely hold only a few hundred items,
including both textfiles and binary files.

I would like a pure Python solution to the extent reasonable.



Gadfly?

Gadfly?


David Isaac写道:
David Isaac wrote:

我没有数据库应用程序的经验。

这个数据库可能只包含几百个项目,包括文本文件和二进制文件的



我想在合理的范围内使用纯Python解决方案。


建议?


谢谢,

Alan Isaac

I have no experience with database applications.
This database will likely hold only a few hundred items,
including both textfiles and binary files.

I would like a pure Python solution to the extent reasonable.

Suggestions?

Thank you,
Alan Isaac



如果它们是文件,只需使用filesyatem,你不需要

数据库。如果你需要多个索引到这些文件中,那么

使用数据库,但仅适用于指向文件系统上的

文件的索引。文件系统几乎总是最有效的存储文件的地方,而不是

数据库中的blob。


答案关于哪个数据库取决于您的目标

平台,但您可以考虑使用gadfly。


-Larry Bates

If they are files, just use the filesyatem, you don''t need a
database. If you need multiple indexes into these files, then
use a database, but only for the indexes that point to the
files on the filesystem. The filesystem is almost always the
most efficient place to store files, not as blobs in a
database.

The answer about which database depends on your target
platform but you could consider gadfly.

-Larry Bates


David Isaac写道:
David Isaac wrote:

我没有数据库应用程序的经验。

这个数据库可能只有几个百项,

包括文本文件和二进制文件。


我想要一个合理的纯Python解决方案。


建议?


谢谢,

Alan Isaac
I have no experience with database applications.
This database will likely hold only a few hundred items,
including both textfiles and binary files.

I would like a pure Python solution to the extent reasonable.

Suggestions?

Thank you,
Alan Isaac



如果你想要真的很简单,看看anydbm模块。如果没有更好的

可用,anydbm将使用dumbdbm。所有这些都在Python

构建中,所以你不需要再获取/读取/安装任何东西。


做DB-API就是更强大,但可能在你的b $ b b情况下有点过分。

If you want really simple, look at the anydbm module. If nothing better
is available, anydbm will use dumbdbm. All of these are in the Python
build, so you do not need to fetch/read/install anything additional.

Doing the DB-API would be much stronger, but might be overkill in your
situation.


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

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