Skip to main content

Posts

Showing posts from February, 2015

Advantage of MongoDB

Advantage of MongoDB 
In MongoDB there is no concept of the relationship while RDBMS has a typical schema design that shows all tables and the relationship between these tables. On enterprise level relational database face more difficulty due to accessing of records, performance etc.  Below I am trying to explain the advantage of MongoDB over RDBMS. Advantages of MongoDB in excess of RDBMS Schema-less: A collection can hold more than one document with different structure means a number of fields, content size of the document can be different to one another.  See below pic.


A person is a collection which has two documents with different structure first document did not have field middleName while second have. It has cleared Structure of a single object.No complex joinsDeep query-ability:  MongoDB supports dynamic queries on documents using a document-based query language that's nearly as powerful as SQLEase of scale-out: MongoDB is easy to scaleConversion / mapping of application objec…

MongoDB Overview

I have started to work with Mongodb so think start blogging about MongoDB. I will try to write very simple language which will give you great understanding on MongoDB concept to create and deploy a highly scalable and performance oriented database.
MongoDB is an open-source document database is written in c++, and leading NoSQL database. MongoDB is a cross-platform, document oriented database that provides, high performance, high availability, and easy scalability. MongoDB works on concept of collection and document. MONGODB OVERVIEW Database: Database physically contains the collections. Each database gets its own set of files on the file system. A single MongoDB server usually has multiple databases. Collection: This is equivalent to RDBMS table; basically collection is group of MongoDB Documents. A collection exists within a single database. Collections do not insist on a schema. Documents within a collection can have different fields. Naturally, all documents in a collection are of si…

get the selected items in checkboxlist

There are many ways to get items from CheckBoxList. Bellow some codes are presented. On aspx page, <asp:CheckBoxList ID="chkbokxlist" runat="server"></asp:CheckBoxList>  1- Code behind         foreach (ListItem i in chkbokxlist.Items)         { if (i.Selected)             { //your code here             }         } 2- Code behind var itm = chkbokxlist.Items.Cast<ListItem>().Where(x => x.Selected); foreach (ListItem i in itm)         { if (i.Selected)

what is named parameters in c#

Visual Studio 2010 and above give us a facility to specify an argument for a particular parameter by associating the arguments with the parameter's name rather than with the parameter's position in the parameter list. For example:     publicclassEmployee     { public Employee()         { } publicvoid emp(string fName, string lName, decimal salary)         { // here your code         } publicvoid Main(string[] args)         {

Difference between Get Method and Post Method in asp.net

Get Method 1 - Data will be arranged in HTTP header by appending to the URL as a query string. 2 - Data is publicly available (Data is in query string so the user can view the data). 3 – It can save only 4k data. 4 – Only ASCII character data type is allowed. 5 – Caching is possible.
Post Method 1 - Post data can be appended to the body as well in URL also. 2 – Data is secret for https otherwise public. 3 – There is no limit on the amount of data. 4 – It allows binary data also. 5 – caching is not possible.