Ruby on Rails 的对象数据库

发布于 2024-07-06 10:22:25 字数 659 浏览 13 评论 0原文

是否有使用某种对象存储的 ActiveRecord 的直接替代品?

我认为像 Erlang 的 MNesia 这样的东西是理想的。

更新

我一直在研究 CouchDB,我认为这是我要选择的选项。 使用 CouchRest 和 ActiveCouch 之间是一个难以抉择的问题。 CouchRest 相当成熟,并在 CouchDB peepcode 中使用,但它并不是 ActiveRecord 的直接替代品,这是一个缺点。

可以说 CouchDB 非常出色。

更新(2009 年 11 月 10 日)

CouchDB 并没有真正为我工作。 CouchDB 并不真正支持任意查询(查询需要提前编写和编译)。 它也会在非常大的数据集上崩溃。

我一直在使用MongoDB,它真的令人难以置信。 具有查询和索引功能的无架构 JSON 数据存储。

我什至开始为其构建一个名为 Ming 的管理工具。

Is there drop-in replacement for ActiveRecord that uses some sort of Object Store?

I am thinking something like Erlang's MNesia would be ideal.

Update

I've been investigating CouchDB and I think this is the option I am going to go with. It's a toss-up between using CouchRest and ActiveCouch. CouchRest is pretty mature, and is used in the CouchDB peepcode episode, but it's not a drop-in replacement for ActiveRecord, which is a bit of a disadvantage.

Suffice to say CouchDB is pretty phenomenal.

Update (November 10, 2009)

CouchDB hasn't really worked for me. CouchDB doesn't really support arbitrary queries (queries need to be written and compiled ahead of time). It also breaks on very large datasets.

I have been playing with MongoDB and it's really incredible. Schema-less JSON data store with queries and indexing.

I've even started building a management tool for it called Ming.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

巴黎夜雨 2024-07-13 10:22:25

AciveCouch 据称就是这样一个CouchDB,实际上是用 Erlang 编写的。 但我不会说它像 ActiveRecord 一样成熟。

这是我所知道的最接近您要求的事情。

AciveCouch purports to be just such a library for CouchDB, which is, in fact, written in Erlang. I wouldn't say it's as mature as ActiveRecord though.

That is the closest thing I know of to what you're asking for.

樱娆 2024-07-13 10:22:25

Madeleine 是 Java Prevayler 对象存储的实现,

请参阅 http: //madeleine.rubyforge.org/

Madeleine is an implementation of the Java Prevayler object store

see http://madeleine.rubyforge.org/

一紙繁鸢 2024-07-13 10:22:25

我目前正在开发一个 ruby​​ 对象数据库,它使用 mysql 作为后备存储(因此它被称为 hybriddb),您可能会对此感兴趣。

它不使用 SQL 或迁移,您只需将对象保存到除了数据库之外,它还试图透明地解决对象数据库的传统问题(速度、快速查找对象、大对象图)。

它仍然是早期版本,所以要小心。 代码在这里
http://github.com/pauliephonic/hybriddb/tree/master 开发分支支持交易,我目前正在添加基本验证。

我有一个网站,其中包含一些教程等。 http://www.hybriddb.org/pages/tutorial_starter< /a>

欢迎任何评论。

I'm currently working on a ruby object database that uses mysql as a backing store (hence it's called hybriddb) that you may be interested in.

It uses no SQL or migrations, you just save your objects to the database, it also tries to work around the conventional problems with object databases (speed, finding objects quickly, large object graphs) transparently.

It is still an early version so take care. The code is here
http://github.com/pauliephonic/hybriddb/tree/master The development branch has support for transactions and I'm currently adding basic validations.

I have a web site with some tutorials etc. http://www.hybriddb.org/pages/tutorial_starter

Any comments are welcome there.

心奴独伤 2024-07-13 10:22:25

除了Madeleine,你还可以看到:

http://purple.rubyforge.org/

但这也取决于规模。 众所周知,Mnesia 支持大量数据,并且是集群式的,而这些解决方案在处理大量数据时效果不佳。

如果数据量不大,另一个选择是:

http://copiousfreetime.rubyforge。 org/amalgalite/files/README.html

Apart from Madeleine, you can also see:

http://purple.rubyforge.org/

But it depends on scale too. Mnesia is known to support large amount of data, and is clustered, whereas these solutions won't work so well with large amount of data.

If amount of data is not huge, another options is:

http://copiousfreetime.rubyforge.org/amalgalite/files/README.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文