2010-12-20 5 views

答えて

2

HSQLDBは​​Javaデータベースであるため、JRubyを使用するのが最も簡単な方法です。

そうでない場合は、http://www.infoq.com/news/ruby-driver-hsqldbhttp://rubyforge.org/projects/hypersonic/

を試してみてくださいあなたは、彼らが似ていることからも、SQLiteの代わりにHSQLDBを見てしたいかもしれませんが、SQLiteのは、Javaで書かれていません。

With the default page size of 1024 bytes, an SQLite database is limited in size to 2 terabytes (2^41 bytes). And even if it could handle larger databases, SQLite stores the entire database in a single disk file and many filesystems limit the maximum size of files to something less than this. So if you are contemplating databases of this magnitude, you would do well to consider using a client/server database engine that spreads its content across multiple disk files, and perhaps across multiple volumes.

http://www.sqlite.org/whentouse.htmlから、それはあなたのニーズを、スイートだろうかどうかを確認するために、そのページの残りの部分を読みます。あなたが役に立つかもしれません

二つの他のページ:
http://www.sqlite.org/faq.html
http://www.sqlite.org/mostdeployed.html

+0

返信いただきありがとうございますが、私はtemperoryストレージ用のデータベースを作成したいと考えています。データの格納にsqliteの最大容量を教えてください。&hsqldbとsqliteの間の容量の差分 – Pranoti

+0

私はSQLiteのいくつかの詳細を使って答えを更新しました。詳細はウェブサイトを参照してください。 – Wodin

+0

ありがとう、本当にありがとうございます。 – Pranoti

0

あなたはJRubyのにしている場合:

の1- hereからHSQLDBドライバをダウンロードし、/にのhsqldb.jarを追加プロジェクトのconfig/database.ymlファイル内のlib

:2-

... 
development: 
    database: db_name 
    adapter: jdbc 
    driver: org.hsqldb.jdbc.JDBCDriver 
    schema: K12_EDUCATION 
    url: jdbc:hsqldb:file:./db_files/db_name 
関連する問題