Introduction to minimongo
Get introduced to the minimongo data store used by MeteorJS on the client.
minimongo is an in-memory data store that’s present on the client-side. It’s a front-end implementation of MongoDB using JavaScript that serves as a cache for storing a subset of data that the client works with.
When we query for data from the client, this data is served from the local cache without making a round trip to the server. We can query the data stored in minimongo by using the same query operators as MongoDB.
minimongo
In the diagram above, a created Mongo collection exists on both the server and the client. This is a core principle of Meteor, namely the existence of a database on both the server and client side.
minimongo uses
Some uses of minimongo are enumerated below.
Latency offset
MongoDB is used to offset latency compensation. Latency refers to the waiting period that occurs when a client communicates with a server and waits for a response. This is assuming we want to perform an operation to insert a new post into the ...