Tagged Questions
37
votes
3answers
5k views
“Large data” work flows using pandas
I have tried to puzzle out an answer to this question for many months while learning pandas. I use SAS for my day-to-day work and it is great for it's out-of-core support. However, SAS is horrible ...
24
votes
7answers
16k views
mongodb: insert if not exists
Every day, I receive a stock of documents (an update). What I want to do is inserting each of them if it does not exists.
I also want to keep track of the first time I inserted them, and the last ...
26
votes
2answers
11k views
Flask user authentication
I have an appliation that will use flask and mongodb; I will probably host it on rackspace.
I need to understand how flask authenticating works. I have not found much information on the subject. Is ...
40
votes
4answers
18k views
MongoDB ORM for Python? [closed]
im trying to convert from sqlalchemy (sqlite) to using mongodb. i would like schema vertification. im looking at mongokit, but i want something with similar to mappers, so that it would save from ...
34
votes
5answers
10k views
Which Python API should be used with Mongo DB and Django
I have been going back and forth over which Python API to use when interacting with Mongo. I did a quick survey of the landscape and identified three leading candidates.
PyMongo
MongoEngine
Ming
...
4
votes
2answers
161 views
MapReduce results seem limited to 100?
I'm playing around with Map Reduce in MongoDB and python and I've run into a strange limitation. I'm just trying to count the number of "book" records. It works when there are less than 100 records ...
8
votes
1answer
3k views
how to use “group” in pymongo to group similar rows?
I am very new to mongodb/pymongo. I have successfully imported my data into mongo and would like to use the group function to group similar row together. For example, if my data set looks like this:
...
5
votes
2answers
4k views
ImportError: No module named objectid
I have currently django-mongodb-engine 0.4.0 version installed on my Mac OS X 10.6.8 and weirdly encountered an interesting error while importing the 'compiler' module:
>> from ...
0
votes
2answers
3k views
Importing large json file into mongodb [closed]
I have a 80MB json file which I need to insert into MongoDB using pymongo. I tried GridFS but figured out that it is mostly for storing a single large file (atleast from what I figure out).
Can ...
7
votes
1answer
1k views
cursor id not valid error
I am trying to iterate through this loop:
for doc in coll.find()
I get the following error at the 100,000th plus record.
File "build\bdist.win32\egg\pymongo\cursor.py", line 703, in next
File ...
25
votes
5answers
8k views
Django Sessions
I'm looking at sessions in Django, and by default they are stored in the database. What are the benefits of filesystem and cache sessions and when should I use them?
12
votes
5answers
2k views
Mongodb - are reliability issues significant still?
I have a couple of sqlite dbs (i'd say about 15GBs), with about 1m rows in total - so not super big. I was looking at mongodb, and it looks pretty easy to work with, especially if I want to try and do ...
13
votes
4answers
1k views
Using MongoDB as our master database, should I use a separate graph database to implement relationships between entities?
We're currently in the process of implementing a CRM-like solution internally for a professional firm. Due to the nature of the information stored, and the varying values and keys for the information ...
11
votes
2answers
2k views
pymongo + gevent: throw me a banana and just monkey_patch?
Quickie here that needs more domain expertise on pymongo than I have right now:
Are the "right" parts of the pymongo driver written in python for me to call gevent monkey_patch() and successfully ...
10
votes
5answers
1k views
How can one shorten mongo ids for better use in URLs?
I've built a number of python driven sites that utilize mongodb as a database backend and am very happy with it's ObjectId system, however, I'd love to be able encode the ids in a shorter fashion ...