clarity wrote:
> Hello,
>
> Will findAndModify ever support modifying multiple documents at once?
Please read
http://www.mongodb.org/display/DOCS/findAndModify+Command
- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQGUBAEBAgAGBQJNh4/pAAoJEADcfz7u4AZjol4Lv0jJsqN8WUumTVBinlcS3RAr
4p2XBNauIZpUiqwMqT+n+0uJWQPHLJBfvj4whpZWXkDFQgl5CzzKlPPXJCBzB7BC
0TbkceJVuEhCp+qmhpWgmAxFrJOHVQjBjuUCdKOXpmTv6GQ5HcTeBl9lcs+T52wQ
F9aRlSMx0cI/SlVwCSp2IKOWSaf9WqVuS+atq1vBOUr4I8NTu9nVzc/VA2CgoNmp
YmPGPi9TD9DYn/2fPcer/XQkx/8IXzE1qioykZyUuz73eETZiCs4tx6lG7uSS7Ke
UTHtNu9u1dDlajDGgBQgia96f9RrSSrnAbgxtQ1zpORyRIvxhHysFQMiHwNhEKpF
3NKZpEWpsck0lqnbpUu+n+eLZxZ+oqfLSAWElyePIztgKINAwRTXS6CbvKF/U9Gy
CavctGFw2Kuje/AMMQJNYvS+5cg1OrrFdh5uNIhs6GhAEDeZftmDMELD0ugCe21i
0dLI7kiwLMO0GlEiOOPILuEl3LGmq/8=
=YIxr
-----END PGP SIGNATURE-----
clarity wrote:
> I built a game server utilizing mongodb, and I need to send messages
> to users on a different server, so I'm writing the data to a
> listeners[] array.
>
> On every server, I'm going to have an algorithm that runs every second
> that finds all the documents where numListeners (the number of values
> in the listeners array) is greater than 0 and the user is on the local
> server. Then, it pushes out the data in the listeners array.
Why won't a simple update() work here?
- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQGUBAEBAgAGBQJNh5kAAAoJEADcfz7u4AZjYnkLwMkdJYzmARYXFiOWsOc9rMbp
Md7pqXV5jIOafp2lxINFhH5cQBAZLdDM//dplxcGyij/gZSSQfOck5Ti9VaWs4bw
34SZwP60t36HhNtLLG6hjowP9E1CY//jDu9xIZGkgXiO2uc58JcUbXWsIiY22wj+
6fYSZX180/ObiW8TOFdxPjBp4hdzx6hFkfsdZGzkyn97RssEmNZGnkluzUr0xtz/
xok5XiNHp8NtH0aO7Au1CznjJ88ktTMGxGhETdQMVSlJCJSD6XjdO02/0pUZEP4o
tic81I/J2Cw135JshcOw2T1vMvz+s52agAY7UrV0qZFb0t1LV37NvuVgvb/pRzt8
AWxHbII4KHgMrvaI4Uoh2r2abSdNDaWeIv8ZCwPGq/qBFTLKemweQ43uEQVHfcsc
TZUOdAM+qZnYhtf3eJo8GJM1ZacNI73sMk9VqSsF/c5rmhLotlaIEF+ELWFwfOQw
e6MUPWFi7yqdKLWIkqveJ1K1VY+o0zY=
=Qwc9
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To post to this group, send email to mongod...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.