Ryuji TamagawaEnglish -> Japanese Freelance Translator specialized for IT industry
![MongoDB on AWS](https://cdn-ak-scissors.b.st-hatena.com/image/square/d79966bfb8c5ed25f16c3321a7c67e3bb1d93c8a/height=288;version=1;width=512/https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2Fmongodbonaws-130309201643-phpapp01-thumbnail.jpg%3Fwidth%3D640%26height%3D640%26fit%3Dbounds)
I would like to use findAndModify to atomically increment a field, using Mongoose. However, the code below throws the error "TypeError: Object # has no method 'findAndModify'": // defining schema for the "counters" table var tableSchema = new Schema({ _id: String, next: Number }); // creating table object for the counters table var counters_table = mongoose.model('counters', tableSchema); var tabl
MongooseでfindAndModifyを使って連番のIDを付けてみた Posted by tatat on 2011/03/20 17:24 Categorized as JavaScript, Linux, Mac Tags findAndModify, JavaScript, Mac OS X, MongoDB, Mongoose, Node.js Comments (0) MongoDBのデフォルトのID(_id)はObjectIdなわけだけども連番のIDも使いたい時があるので。 どうやら findAndModify を使えばうまいことできるようなのだけど、Mongoose(Mongooseがドライバで使用しているnode-mongodb-native)にはそのヘルパーファンクションがまだ実装されていないようだったので node-mongodb-native の execute
This document contains links to MongoDB documentation pages about sharding, databases, collections, inserting, querying, updating, indexing, replication, and backups. It includes a link to a slideshare presentation on MongoDB sharding and links to pages explaining replica set internals and operations.Read less
8ヶ月間、MongoDBをプロダクションで使っている人のブログ記事が面白かったので、興味深いところだけまとめてみた。 原文はこちら 。 8ヶ月間使ってデータベースの規模は、Collections (tables): 17,810Indexes: 43,175Documents (rows): 664,158,090 master/slaveのマニュアルでのフェイルオーバ環境で運用してきた。masterは72GBのRAMslaveは別のデータセンタ ディスク的にきつくなってきたので、手動でShardingをし4つのDB(Master 2つ / Slave 2つ)に分けることにした。 namespaceの限界があるので、データを3つのMongoDB( これは物理的なサーバではなくてMongoDBのデータベースの単位)に分割している。現在のnamespaceの数は、 db.system.name
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く