Tagged Questions
0
votes
0answers
35 views
Updating element in array inside document with MongoDB not preserving its type
In my project there is a structure like so:
class User {
private List<MapObject> mapObjects;
}
class MapObject {
... some fields...
}
class SubMapObject {
... some additional fields
}
...
9
votes
5answers
5k views
Rails: storing encrypted data in database
I want to encrypt database because confidential data is being stored. I use mongodb with mongoid. It possible for this kind of database? And what alternatives can you recomend, if it is not?
P.S. ...
0
votes
2answers
25 views
Query on results of query in MongoDB
I have a mongo database and several collections in it. I want to remove from collections all entiries that match, say, target_id. The trick is that I also have to remove entries "connected" to entries ...
0
votes
2answers
115 views
mongoDB set name does not match
I have got 3 mongod demo replicates servers running on my machine. I have used following command to create replicated server:
F:\>mongod --replSet test2 --dbpath 2 --port 27112 --oplogSize 50 ...
0
votes
2answers
85 views
Need DB tech and methodology suggestion on mapping keyword relationships [closed]
I have to spider over 2 million URLs and harvest their meta keywords.
I then need to store each unique keyword and via the DB, keep track of which keyword appears with / is linked to other keywords.
...
1
vote
2answers
27 views
MongoDB copy a field to another collection with a foreign key
I want to copy over the color from user collection to the Car collection. I'm using a foreign key which is userID.
> db.test1.User.find()
{ "_id" : ObjectId("515f7db83f71d6bcb1c41a48"), "age" : ...
1
vote
1answer
49 views
storing live data in Mongodb
I am pushing data to a server using an API from a website. Every time my arduino detects a pulse it sends it to COSM. And by using a trigger, the data goes to my server. I was initially writing the ...
2
votes
1answer
55 views
Memory efficient way to import large files and data into MongoDB?
After recently experimenting with MongoDB, I tried a few different methods of importing/inserting large amounts of data into collections. So far the most efficient method I've found is mongoimport. ...
3
votes
1answer
46 views
Mongo many to many
I'm trying to model a many to many relationship where a Customer 'loves' a Food.
I'm expecting to get lots (millions) of these relationships so I didn't want them to all end up in one join table that ...
0
votes
2answers
72 views
Database design: Mysql or MongoDb/OrientDb to mapping relations? [closed]
I need an advice.
I'm developing a web application written in PHP with a few entity but a lot of (by number and type of) relation.
Simple examples:
Entities: 4
Possible relations ManyToMany and ...
17
votes
7answers
17k views
Databases using JSON as storage/transport format
How many database systems there are that use JSON for storage or transport? I know of:
CouchDB
MongoDB
DBSlayer
I remember I saw yet another vendor in a SO user's profile. That systems was using ...
0
votes
0answers
36 views
Is there any equivalent in MongoDB for MS-SQL command 'SET IDENTITY_INSERT tablename OFF'? [duplicate]
I was trying to update a _id field of a document in MongoDB.
The following is the command I derived based on my understanding.
...
0
votes
1answer
32 views
How to rename a Stored JavaScript in MongoDB?
Consider, I have a following Stored JavaScript in MongoDB
{_id: "sum",
value: function (x, y) { return x + y; }}
It is been created by following command in MongoDB shell
db.system.js.save({_id: ...
0
votes
0answers
31 views
MongoDB: Statement within $group clause not functioning as expected.
Here's a snippet of a query I'm running, I'm attempting to retrieve the number of user accounts which have deployed an item in our system within a given time period.
The match condition ensures ...
1
vote
0answers
21 views
How to query for DBPointer's value in MongoDB?
I have this entry in database:
{ "_id" : ObjectId("5159c668a8f9718f040025da"), "name" : "foo", "subType" : DBPointer("Type", ObjectId("5159928ca8f9718f04000006")) ] }
The sub type references to:
{ ...