![MongoDB、モバイル機器向けの軽量埋め込み型データベースを手がけるRealmを買収へ](https://cdn-ak-scissors.b.st-hatena.com/image/square/f08cdc97c4ae19145103ef3a0924757e3d847274/height=288;version=1;width=512/https%3A%2F%2Fjapan.zdnet.com%2Fstorage%2F2019%2F04%2F25%2F878223bb252b45834fdce1e229cf1582%2Flarge-99684.jpg)
mongoコマンドから接続した際にオールドタイプ(SQL脳)たる我々人類にも 調べやすい形でinsert、select、updateを行う方法を調べました。 定義参照 // use [データベース名] use [データベース名] // show databases show dbs // show tables show collections参照系 // select * from [コレクション名] db.[コレクション名].find() // select * from [コレクション名] where x=4 db.[コレクション名].find({x:4}) // select j from [コレクション名] where x=4 db.[コレクション名].find({x:4}, {j:1}) // select * from [コレクション名] limit 1 db.[コレクション
Webサーバからfluent-plugin-mongoを使って、 以下の流れでApacheのアクセスログをMongoDBに突っ込むことができたのでメモ。 Webサーバ → fluentサーバ → MongoDBサーバ 【サーバ構成】 サーバ構成の詳細は、以下のとおり。 ■Webサーバ OS:CentOS 5.6 fluent:0.9.19 Apache:2.2.3 ■fluentサーバ OS:CentOS 6.0 fluent:0.9.19 fluent-plugin-mongo:0.3.1 ■MongoDBサーバ OS:CentOS6.0 MongoDB:2.0.0 【各設定ファイル】 Webサーバとfluentサーバのfluentの設定ファイルは、以下の内容。 #もっとよい記述方法があるかも ■Webサーバ type tail format apache time_format %d/
The document discusses using node.js with MongoDB. It includes examples of basic CRUD operations using the node.js driver and MongoDB native driver. It also discusses ORM libraries like Mongoose that provide an abstraction layer. The document contains code samples for performing inserts, updates, finds and counting documents using the native node.js driver and Mongoose.Read less
ハンガリーの企業でCTOを務めるKristof Kovacs氏による記事です。各主要NoSQLプロダクトについて機能比較や利用ケースなどをまとめています。この記事ではCassandraやRedisなど6つのプロダクトを挙げています(表1)。 CouchDBは使い勝手に優れており、双方向レプリケーションやリアルタイム更新をサポートしています。Redisは非常に高速なことが売りで、トランザクションや変更監視の機能が備わっています。Cassandraは書き込みが読み込みよりも速いことから銀行や金融などのリアルタイムなデータ解析が必要になる分野で実力を発揮し、Cassandraと同じくJavaで作られているHBaseは億単位の行と数百万のカラムというBig Dataを扱え、月に1,000億を超えるメッセージを処理するFacebookのバックエンドに採用されています。 次々にプロダクトが生まれた
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く