Questions tagged [minimongo]

Minimongo refers either to [tag:meteor] client-side MongoDB database, or the Python lightweight schemaless object-oriented interface to MongoDB.

For , Minimongo is an in-memory database with nearly full support for operations.

For , Minimongo is a lightweight, schemaless, Pythonic Object-Oriented interface to MongoDB.

It provides a very thin, dynamically typed (schema-less) object management layer for any data stored in any MongoDB collection. Minimongo directly calls the existing pymongo query syntax.

Minimongo can easily layer on top of existing MongoDB collections, and will work properly with almost any existing schema, even from third party applications.

164 questions
0
votes
1 answer

Using a dynamic variable to access another variable's value in Meteor?

So I'm trying to make my code more modular for sanity purposes (and because it seems more efficient than writing the same code five+ different ways). However, I'm running against a wall on this one as my JavaScript knowledge is apparently lacking.…
0
votes
2 answers

Is there a rerender event for Meteor.js?

Is there a rerender event or event fired when when minimongo db changes in Meteor.js? I am making a messenger with meteor js and i need to scroll down when i get a new message and thisbshould be done when new message(html) is inserted by meteor.
0
votes
0 answers

Minimongo memory consumption

I have collection with size about 30 MB (on server). It's fully mirrored with client. Tell me, why client uses hundreds of ram (400MB+) instead of 30 MB? I was searching for minimongo memory efficiency, but I found nothing, so I'm asking now
dev1223
  • 1,148
  • 13
  • 28
0
votes
1 answer

Detect if Minimongo denied a collection write operation

How can the client code of a Meteor app detect that a write operation (insert, remove, update) against a collection was denied, so that it can display an appropriate error message? Collection.remove(id) The console will display: remove failed:…
Dan Dascalescu
  • 143,271
  • 52
  • 317
  • 404
0
votes
0 answers

Document inserted in wrong order, fixes itself

I'm getting a list of the 200 most recent messages in my publish function, like so: Messages.find({ room: roomname }, { sort: {time : -1}, limit: 200 }), I know this makes the newest first, but I want the oldest first, so when I do…
Matt
  • 386
  • 3
  • 9
0
votes
2 answers

what happens when I execute fetch() on minimongo

To query objects on meteors client-side mongodb implementation, I can use either MyModel.find(); // produces a lot of attributes, not useful or MyModel.find().fetch(); // returns array containing my objects from type 'MyModel', e.g. // [ { _id:…
Ronin
  • 7,322
  • 6
  • 36
  • 54
0
votes
1 answer

Meteor collection update focus and blur latency

I'm trying to save user content on blur and am encountering a weird UI freeze after the save that I've never seen before. A simplified version of the template: {{#each UserSession.getQuestions}} {{UserSession.getVal…
Daniel Bernhard
  • 382
  • 3
  • 11
0
votes
1 answer

Accessing minimongo from template helper meteor / mongodb

I am trying to access my Products collection in Minimongo in the html page. When I am in my browser console, I am able to type Products.findOne(); and it will return a product. However, when I try to return a product from my template helper, I get…
Trung Tran
  • 13,141
  • 42
  • 113
  • 200
0
votes
1 answer

How to return a subdocument from a document based on parameters in Minimongo?

Short question Is there a way to filter documents client side? Long question So I have user accounts in a current Meteor JS project that store subdocuments, such as emails and comics. _id: "jGZgBRqPRGFakcQRS", comics:[ {_id:…
ajanus
  • 25
  • 4
0
votes
2 answers

How to improve data handling with meteor

Still on my meteor app, i'd like to now how to improve my data handling from minimongo. Used to SQL / PHP, I'd like to know how to find() an object from my minimongo collection only one time, and access each of its properties with helpers, without…
David Panart
  • 656
  • 6
  • 20
0
votes
0 answers

Is there a way to preserve data attributes on elements of a reactive Meteor template?

I'm trying to build a simple game using Meteor. I have a collection of 'games', where each game has a state which is a 7x7 array of data used for a grid. I have 3 templates, the game table, a row of that table and a cell of that table:
Callum M
  • 1,635
  • 19
  • 27
0
votes
1 answer

Clone or edit local Minimongo collection

I'd like to clone a minimongo collection so I can do some calculations, get a result, then push those results back to the server. Assuming this is a suitable pattern, how best can I clone a minimongo collection? It appears that in the object no…
Matt K
  • 4,813
  • 4
  • 22
  • 35
0
votes
1 answer

Compare all items in minimongo collection to each other

I created a local minimongo collection & I want to compare each item in the collection to all the other items (combination, not permutation). If it were an array, it'd look like this: for (var i = 0; i < coordCount - 1; i++) { for (var j = i + 1;…
Matt K
  • 4,813
  • 4
  • 22
  • 35
0
votes
0 answers

how to handle a huge amount of data in Meteor?

I have a pagination bar that controls what data I display in a table (I re-subscribe every time I move to a new page). the collection that I'm working with has 25,000 documents and it may get up tp 100,000 documents. Everything seems to be working…
juanp_1982
  • 917
  • 2
  • 16
  • 37
0
votes
1 answer

Crud operations on client only collection in meteor

I have a client only collection feedComments=new Mongo.Collection('feeds'); Using meteor composite I'm publishing few records to this collection, when I try to update the collection in client…
user555
  • 1,489
  • 2
  • 15
  • 28
1 2 3
10
11