real world example of nosql 1

real world example of nosql

One example is analytics.

Lets say you want to build the next Google Analytics. You figure out you want to track IP Address, Browser & Device type. Later you, however, finds out you might want to track Browser Size as well. Since analytics databases can contain millions/billions of data, it isn't so easy to add an extra column to your table. It would simply take too long.

With a NOSQL solution you might just add it to the future rows, without having to change every row in the tracking table.

So in general "every" place where you need to crunch data and numbers for report

Here is what the above code is Doing:
1. We’re creating a new database called “my_database”
2. We’re creating a new collection called “my_collection”
3. We’re inserting a new document into “my_collection”
4. We’re printing out the document we just inserted

Similar Posts