Printer-friendly versionWhat is this MongoDB? An increasingly popular, document-oriented database that you can read about here. Installing MongoDB on Ubuntu And here's the catch because, at the moment, the current release of MongoDB has a shared library issue. So you can try to install MongoDB the normal way and, if that works, you're good to go. If not, you have to do a bit more work. Installing
ゲームを作れるウェブサービス - Rmakeでは、MongoDB : C++ で書かれた高速なドキュメント指向DB (ヽ( ・∀・)ノくまくまー(2009-07-02))にて紹介されているMongoDBとMongoDBにRubyからアクセスできるMongoRecordを使ってみています。使った感じが良かったので、簡単な使用例と適用方法を紹介します。 元記事を読んでMongoDBとMongoRecordのセットアップが終わっている人向けです。ただ、MongoRecordのインストールは以下のInstallationを読んでおく方が良いかもしれません。 mongodb's mongo-activerecord-ruby at master - GitHub 検索関係 NoSQLなDBを使う場合、どれくらい検索機能が充実しているかが一番気になります。MongoDBはトランザクションを扱うことには
以下の記事でMongoDBとMongoRecordの紹介をしました。where句について、セキュリティの観点(スクリプトインジェクションができてしまう可能性がある)から念のため気にしておく必要があるかなと思ったことを書いておきます。 MongoDBにRubyからアクセスできるMongoRecordを使ってみている - 平凡なエンジニアの独り言 以下のようなコードがあるとしましょう。 _js = <<-EOS function() { return this.hogehoge == "#{params[:hogehoge]}"; } EOS @hoges = HogeModel.find(:all, :conditions => {"$where" => _js})params[:hogehoge]に「" || true || this.hogehoge == "」みたいな内容が入ってくると
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く