Tuesday, July 16, 2019

Note about MongoDB 2019.02

Engine comparison: MMAPv1 MMAPv1 is quite mature and has proven to be quite stable over the years. One of the storage allocation strategies used with this...

Copy MongoDB to S3

Sample project: https://www.codeproject.com/Articles/656093/Connecting-MongoDB-with-ASP-NET (Old mongo db driver) Visual Studio 2015 Install nuget: MongoDB.Driver 2.4.3 Configuration: Connection string: https://docs.mongodb.com/manual/reference/connection-string/   .net core   https://www.codeproject.com/Articles/1151842/Using-MongoDB-NET-Driver-with-NET-Core-WebAPI http://www.dotnetcurry.com/aspnet-mvc/1267/using-mongodb-nosql-database-with-aspnet-webapi-core Mixing Static and Dynamic Data http://mongodb.github.io/mongo-csharp-driver/2.4/examples/mixing_static_and_dynamic/   TUTORIAL http://edubanq.com/database/mongodb-database/mongodb-from-c-with-the-net-driver-2-0/

Entity Framework: Storing complex properties as JSON text in database

https://www.codeproject.com/Articles/1166099/Entity-Framework-Storing-complex-properties-as-JSO Complex properties in entity Framework models such as arrays, dictionaries, and objects can be serialized in SQL Server database in JSON format. In this...

Entity Frameworks Core

Database First: https://cmatskas.com/ef-core-migrations-with-existing-database-schema-and-data/ dotnet ef migrations add dotnet ef dbcontext scaffold "ConnectionString" --output-dir ReverseModels --force https://docs.microsoft.com/en-us/ef/core/get-started/aspnetcore/existing-db Code first:  

UNDERSTAND DYNAMODB

WHAT IS DYNAMODB? Read Unit: 4K, Write Unit: 1KB Requirements: 1000 4KB Item write/second >= 4000 Write Unit/second Avoid hot spot area: Limit: maximum record...

Mongo Cloud Install for Monitoring

Download rpm curl -OL https://cloud.mongodb.com/download/agent/monitoring/mongodb-mms-monitoring-agent-5.5.0.358-1.x86_64.rpm Install sudo rpm -U mongodb-mms-monitoring-agent-5.5.0.358-1.x86_64.rpm  

Deploy mongodb on EC2

Mongodb on EC2 https://docs.mongodb.com/ecosystem/platforms/amazon-ec2/#deploy-mongodb-ec2 Migrate Mongodb to WireTiger http://askubuntu.com/questions/643252/how-to-migrate-mongodb-2-6-to-3-0-with-wiredtiger Start mongod: sudo mongod --dbpath /var/lib/mongodb --config /etc/mongod.conf Deploy Replica https://docs.mongodb.com/manual/tutorial/deploy-replica-set/ Sample option File End  

MongoDB Backup and Restore single collection

mongodump --db=app_service_release --collection=661744644___users --out=data mongorestore --db=app_service_release --collection=661744644___users data/app_service_release/661744644___users.bson TOPIC 1: What is a MongoDB Replication Set? MongoDB handles replication through an implementation called "replication sets". Replication sets in...

Quản trị MySQL

Giới thiệu MySQL Replication 1. Giới thiệu Right tool for right job. Trước tiên phải hiểu là MySQL Replication không phải là giải pháp giải quyết...

Mongo DB

Mongo DB is an No SQL, opensource db, written in C++ Install   sudo apt-get install -y mongodb-org Một số chú ý: Mongodb từ 3.0 hỗ trợ hai loại...