-
as seen on ASP.net Weblogs
- Search for 'ASP.net Weblogs'
The project I'm working on uses MongoDB for some stuff so I'm creating some documents to help developers speedup the learning curve and also avoid mistakes and help them write clean & reliable code. This is my first version of it, so I'm pretty sure I will be adding more stuff to it, so stay tuned…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I'm running Ubuntu Server 12.04 (32 bit) on an old (1998) computer. Everything's working fine until I try and start MongoDB.
somekittens@DLserver01:~$ mongo
MongoDB shell version: 2.2.2
connecting to: test
Sun Dec 16 22:47:50 Error: couldn't connect to server 127.0.0.1:27017 src/mongo/shell/mongo…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
hi
i have this document in mongo:
{
"_id": ObjectId("4d0b9c7a8b012fe287547157"),
"done_by": ["1"]
}
and i want to add another value to "done_by" field, so my expected document will be::
{
"_id": ObjectId("4d0b9c7a8b012fe287547157"),
"done_by": ["1","2","3"]
}
i try this:
$conn…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm currently using MongoDB to record application logs, and while I'm quite happy with both the performance and with being able to dump arbitrary structured data into log records, I'm troubled by the mutability of log records once stored.
In a traditional database, I would structure the grants for…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi!
I am trying to test out mongoDB and see if it is anything for me. I downloaded the 32bit windows version, but have no idea on how to continue from now on.
I normally use the WAMP services for developing on my local computer. Can i run mongoDB on Wamp?
However, what's the best (easiest!) way…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I use pymongo 1.9 on Ubuntu 10.10 with python 2.6.6
When i trying to monkey patch pymongo.connection._Pool i'm getting error on connection:
AutoReconnect: could not find master/primary
But when i change _Pool class in pymongo.connection module, it work pretty fine.
Even if i copy _Pool implementation…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I want to create a DBRef manually so that I can add an additional field to it. However, when I try to pass the following:
{'$ref': 'projects', '$id': '1029412409721', 'project_name': 'My Project'}
Pymongo raises an error:
pymongo.errors.InvalidName: key '$id' must not start with '$'
It would…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
just installed mongokit and can't figure out why I get AssertionError
python console:
>>> from mongokit import Connection
>>> c = Connection()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.6/dist-packages/mongokit-0…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Is it possible to query through a DBRef using a single find spec?
user collection
{
'age': 30
}
post collection
{
'user': DBRef('user', ...)
}
Is it possible to query for all post who's users are 30 in a single find step? If not, would it be wise to create a javascript function to…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
When I try saving a dict with a '.' in the key PyMongo throws an error (InvaildName) however I do see (on the Mongodb website) that keys can have '.''s in them. Why is it that pymongo won't let me save these docs? Is there an issue with them and Mongo?
James
>>> More