MongoDB

Showing 18 posts.

MongoDB Text Search

Posted in MongoDB, Mongoose by dake

Read more...

Mongodb TextSearch in C#

Posted in MongoDB, C# by dake

Simple code snippet to use mongoC# text search

Read more...

Upload my first nuget package

Posted in MongoDB by dake

How to create and publish nuget package

Read more...

C# MongoDB GEO

Posted in MongoDB, C# by dake

THis blog shows a example of how to use C# location query to MongoDB

 

Read more...

Use MongoDB textSearch by Mongoose

Posted in Mongoose, MongoDB, Node.js, C# by dake

How to use MongoDB text search

Read more...

Setup Mongo Service on Windows

Posted in MongoDB by dake

This blog shows how to install simply install and use mongoDB.

Read more...

MongoDB Schema Design

Posted in MongoDB by dake

Few list when design mongodb.

Read more...

Mongodb 2.6 upgrade

Posted in MongoDB, Mongoose by dake

how to upgrade mongodb from 2.4 to 2.6 

Read more...

Mongoose - Get Start

Posted in MongoDB, Mongoose by dake

This article provide information for you to get start with mongoose.

Read more...

MongoDB GMT time in C#

Posted in MongoDB, C# by dake

Save DateTime as GMT time to mongo DB

You can set the UTC Date in property level and set when insert.

Property Attribute to save time as UTC

[BsonDateTimeOptions(Kind = DateTimeKind.Utc)]

public DateTime UpdateDate { get; set; }

Save Date when Insert to MongoDatabase.

table.CreateDate = DateTime.UtcNow;

Read more...

Software need for windows enviroment

Posted in ASP.NET, C#, MongoDB, Web by dake

Following are few minimum list I'm using to setup my development enviroments for windows. I hope this would help you as well.

Read more...

MongoDB - Export Import Collection

Posted in MongoDB by dake

Following example is export/import to your localhost's mongo database.

Export Collection from Mongo Database


Mongodb/bin>mongoexport --db {your database} --collection {your collection} --out {your file name}.json

Import Collection to Mongo Database


Mongodb/bin>mongoimport --db {your database} --collection {your collection} --file {your file name}.json

For detail information, reference following mongo document.

Read more...

Books - Mongoose for Application Development

Posted in Books, MongoDB by dake

Show how to use Mongoose by using Node.js, Express.js, MongoDB. It talks very detail about mongoose.

Read more...

import/export mongo database

Posted in MongoDB by dake

With mongodb's mongodump & mongorestore command, you can achieve export and import data to your mongo database.

1. Export Database

Go to your local mongo bin folder. Type mongodump --db {your database name}

This command will export all your database as binary file under dump folder. When I have 200 MB, totall collection around 50,000. This command run like 2,3 second in my Windows 8 (8GB memory) PC.

If you're connect to remote mongo db, following command could be use.


mongodb\bin>mongodump --db {your database} --host {your host server name} --port {host server port number} --usernmae {mongodb username} --password {mongodb userpassword}

 

2. Restore you database to the remote connected database

Asume your remote mongo database have nothing, you just want to import everything you just export from local mongo datatabase. Run following command.

mongorestore --db {your database} --host {server name} -- port {server port number} --username {your database user name} --password {your database user's password} dump/{your database name}

Read more...

Best Mongo UI for windows

Posted in MongoDB by dake

List of Free Mongodb Management tools.

Read more...

MongoDB Script Quick Note

Posted in MongoDB by dake

Few mongo db script/command note

Read more...

Issue list want to resolve

Posted in C#, MongoDB, WebAPI(Microsoft) by dake

Few my personal list I have to take time to learn.

Read more...

Add index to document or subdocument at Mongodb C#

Posted in MongoDB by dake

Read more...