mongodb.md

July 15, 2021 · View on GitHub

Bookmarks tagged [mongodb]

www.codever.land/bookmarks/t/mongodb

SQL vs NoSQL or MySQL vs MongoDB - 21min

https://www.youtube.com/watch?v=ZS_kXvOeQ5Y

SQL or NoSQL? MySQL vs MongoDB? Which database is better? Which one should you use?


Welcome to the MongoDB Documentation — MongoDB Documentation

https://docs.mongodb.com/


Railway

https://railway.app/

Infrastructure, Instantly


Defending Against Query Selector Injection Attacks

https://thecodebarbarian.wordpress.com/2014/09/04/defending-against-query-selector-injection-attacks...

This article shows two simple ways to protect against the attacks described in Hacking NodeJS and MongoDB. One of the them is by...


Nosqlclient

https://www.nosqlclient.com/

Cross-platform and self hosted, easy to use, intuitive mongodb management tool - Formerly Mongoclient


idealo/mongodb-slow-operations-profiler

https://github.com/idealo/mongodb-slow-operations-profiler

This java web application collects and stores slow operations from one or more mongoDB system(s) in order to visualize and analyze them.


Troubleshooting MongoDB 100% CPU load and slow queries

https://medium.com/@igorkhomenko/troubleshooting-mongodb-100-cpu-load-and-slow-queries-da622c6e1339

In this article I’m going to cover 3 main things:

  • How to detect the queries that lead to CPU load spikes: solution N1
  • How to detect the queries that lead to CPU load spikes: solution N2
  • How to g...
  • :calendar: published on: 2017-11-16
  • tags: mongodb, troubleshooting, performance

Node - Exclude fields from select with Mongoose/MongoDB · Curtis Larson's Blog

https://www.curtismlarson.com/blog/2016/05/11/mongoose-mongodb-exclude-select-fields/

Individually ...


Fast paging with MongoDB

https://scalegrid.io/blog/fast-paging-with-mongodb/

Paging through your data is one of the most common operations with MongoDB. Let's walk through an example to see the ways of paging through data in MongoDB.


Using Clean Architecture for Microservice APIs in Node.js with MongoDB and Express - 33min

https://www.youtube.com/watch?v=CnailTcJV_U

In this video we talk about Bob Martin's Clean Architecture model and I will show you how we can apply it to a Microservice built in node.js with MongoDB and...


Docker compose with Node.js and MongoDB - Hagai Kahana - Medium

https://medium.com/@kahana.hagai/docker-compose-with-node-js-and-mongodb-dbdadab5ce0a

This is the first of a series of posts trying to demonstrate real (simple) examples of deploying multi distributed applications across multiple platform and environments.

The purpose of this post is ...


awesome-mongodb

https://github.com/ramnes/awesome-mongodb#readme

:leaves: A curated list of awesome MongoDB resources, libraries, tools and applications - ramnes/awesome-mongodb


mongoose - Does MongoDB's $in clause guarantee order - Stack Overflow

https://stackoverflow.com/questions/22797768/does-mongodbs-in-clause-guarantee-order

There are several options available - see the accepted response.

  • :calendar: published on: 2014-04-20
  • tags: mongodb

Build Reactive APIs with Spring WebFlux

https://developer.okta.com/blog/2018/09/24/reactive-apis-with-spring-webflux#secure-your-spring-webf...

You've heard that reactive programming can help you scale? But how do you implement it? Using Spring WebFlux, of course! This article shows you how.


How do you rename a MongoDB database? - Stack Overflow

https://stackoverflow.com/questions/9201832/how-do-you-rename-a-mongodb-database

//copy the database
> db.copyDatabase("db_to_rename","db_renamed")

//drop the old database
> use db_to_rename
> db.dropDatabase();

Generating Globally Unique Identifiers for Use with MongoDB

https://www.mongodb.com/blog/post/generating-globally-unique-identifiers-for-use-with-mongodb

By default, MongoDB generates a unique identifier that is assigned to the _id field in a new document before writing that document to the database. In many cases the default unique identifiers assig...


Mongoose - SubDocuments

https://mongoosejs.com/docs/subdocs.html

Subdocuments are documents embedded in other documents. In Mongoose, this means you can nest schemas in other schemas. Mongoose has two distinct notions of subdocuments: arrays of subdocuments and sin...


Cleaner code in NodeJs with async-await - Mongoose calls example – CodepediaOrg

http://www.codepedia.org/ama/cleaner-code-in-nodejs-with-async-await-mongoose-calls-example

Example showing migration of Mongoose calls from previously using callbacks to using the new async-await feature in NodeJs


mongoose-unique-validator

https://github.com/blakehaswell/mongoose-unique-validator

mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.

This makes error handling much easier, since you will get a Mongoose validation error ...


Docker Official Image packaging for MongoDB

https://github.com/docker-library/mongo

Docker Official Image packaging for MongoDB.


Dockerizing a Node.js and MongoDB App – XOOR – Medium

https://medium.com/@xoor/dockerizing-a-node-js-and-mongodb-app-f9d80fdb280e

Docker has become an extremely popular tool not only among DevOps and Infrastructure people, but also for the daily work of any developer. Simple with examples for beginners.


Using MongoDB as realtime DB with nodeJS. – Noteworthy - The Journal Blog

https://blog.usejournal.com/using-mongodb-as-realtime-db-with-nodejs-c6f52c266750

Have you ever run into a scenario where you wanted to update your UI as soon as there is some change to your Mongo database ? For example, A new user gets added and you wanted that change to reflect…


Deploy a MERN stack app on Heroku – Crowdbotics – Medium

https://medium.com/crowdbotics/deploy-a-mern-stack-app-on-heroku-b0c255744a70

In this article, I will describe how to take an existing Web Application that is build using MongoDB, ExpressJS, Node.js, and React (often called as MERN stack) on a deployment service like Heroku


A Node.js Perspective on MongoDB 4.0: Transactions

http://thecodebarbarian.com/a-node-js-perspective-on-mongodb-4-transactions.html

Transactions are undoubtedly the most important new feature in MongoDB 4.0. MongoDB has supported ACID for single document operations for many years, and denormalized data meant many apps didn't need ...


javascript - Mongoose Model.save() hangs when called from node.js app - Stack Overflow

https://stackoverflow.com/questions/12030371/mongoose-model-save-hangs-when-called-from-node-js-app

You haven't created a connection for Mongoose to use by default. Replace this: ...


MongoDB Node.js Driver

http://mongodb.github.io/node-mongodb-native/

The official MongoDB Node.js driver provides both callback-based and Promise-based interaction with MongoDB, allowing applications to take full advantage of the new features in ES6.


RESTful API In Node & Express With TypeScript & MongoDB - YouTube

https://www.youtube.com/watch?v=XqbBv1i9Yhc

This video covers writing a RESTful JSON API using Node, Express, MongoDB, Mongoose, and TypeScript. My other Node...


GitHub - szokodiakos/typegoose: Typegoose - Define Mongoose models using TypeScript classes.

https://github.com/szokodiakos/typegoose

typegoose - Typegoose - Define Mongoose models using TypeScript classes.


Common Async/Await Design Patterns in Node.js

http://thecodebarbarian.com/common-async-await-design-patterns-in-node.js.html

Retry, parallel request, mongodb cursor etc.


Multi-line input in Mongo shell (Example)

https://coderwall.com/p/rmbswq/multi-line-input-in-mongo-shell

A protip by jabclab about vim and mongo.


Glossary — MongoDB Manual

https://docs.mongodb.com/manual/reference/glossary/

Find definition of database, collection, document, BSON etc.


MongoDB en español: T1, El principio

https://github.com/yograterol/ebook-mongodb-basico

Yohan Graterol


El pequeño libro MongoDB

https://github.com/uokesita/the-little-mongodb-book


Practical MongoDB shell commands every developer should know

http://www.codepedia.org/ama/practical-mongodb-shell-commands-every-developer-should-know

Practical mongo shell commands.


mongo Shell Quick Reference — MongoDB Manual

https://docs.mongodb.com/manual/reference/mongo-shell/

On this page: mongo Shell Command History; Command Line Options; Command Helpers; Basic Shell JavaScript Operations; Keyboard Shortcuts; Queries; Error Checking Methods; Administrative Command Helper...


FAQ: Indexes — MongoDB Manual

https://docs.mongodb.com/manual/faq/indexes/

This document addresses some common questions regarding MongoDB indexes.


Query Optimization — MongoDB Manual

https://docs.mongodb.com/manual/core/query-optimization/


33rd Degree 2014 - MongoDB Schema Design - Tugdual Grall - YouTube [47']

https://www.youtube.com/watch?v=csKBT8zkRf0

MongoDB's basic unit of storage is a document. Documents can represent rich, schema-free data structures, meaning that we have several viable alternatives to the normalized, relational model. In this ...


Optimizing MongoDB Compound Indexes

https://emptysqua.re/blog/optimizing-mongodb-compound-indexes/

Everything you need/have to know about indexes


simple voting system with MongoDB - Stack Overflow

http://stackoverflow.com/questions/12339233/simple-voting-system-with-mongodb

For that reason I would add an array "votes" to each article which includes an object for each vote which uniquely identifies the user who made it:

...


MongoDB Hosting: Database-as-a-Service by mLab

https://mlab.com/

Use sandbox plans which are free and are ideal for learning, developing, and prototyping. Expert database support is included.


Security Checklist — MongoDB Manual

https://docs.mongodb.com/manual/administration/security-checklist/

This documents provides a list of security measures that you should implement to protect your MongoDB installation.


The MongoDB Manual

https://docs.mongodb.com/manual/

The Manual introduces key concepts in MongoDB, presents the query language, and provides operational and administrative considerations and procedures as well as a comprehensive reference section.