How to add existing projects to Github ?

Version control is an importantUnderstand git clone , svn checkout Vs git clone aspect of any application development, it allows you to access your code base from different machines ,allows you to make lot of mistakes and then correct them before delivering a final product ,allows you to track the progress of your project and much more. If you are reading this post I am assuming that you are having a project that you want to move on Github. Continue reading How to add existing projects to Github ?

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Write Concern MongoDB Performance Comparison

In the last post we have MongoDB Official Logoseen the difference among all the available write concerns in MongoDB. We have also seen that which write concern to choose in which scenario that mostly depends on the type of data you are dealing with.

In this post we will see a performance comparison of all the write concerns , in this test i have inserted 100K records for each type of write concerns and captured the time taken for them.

Below are the stats that I got after executing my test case. Continue reading Write Concern MongoDB Performance Comparison

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Types of Write Concern in MongoDB – Performance Vs Persistence

[This post will discuss about different types of write concern in MongoDB – Performance Vs Persistence.]
Controlling the write MongoDB Official Logooperations in an application is always an important aspect. Today almost all the frameworks that interact with datastores provide mechanism to let you know whether your write operation is successful or not. Now when we talk about in the context of MongoDB , it also provides you an ability called as Continue reading Types of Write Concern in MongoDB – Performance Vs Persistence

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

MongoException multi update only works with $ operators

It is quite possible for the first MongoDB Official Logotime when you are working with Multiple documents update in MongoDB you might see this exception.
Exception in thread “main” com.mongodb.MongoException: multi update only works with $ operators Continue reading MongoException multi update only works with $ operators

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Update Multiple Documents MongoDB Java Example

This post will talk about Update Multiple Documents MongoDB Java Example.
In the last few examples MongoDB Official Logowe have seen that, we are using the default version of update() method , where it takes 2 arguments i.e. search criteria object and modified object. Whenever this version of update() method is executed it updates only Continue reading Update Multiple Documents MongoDB Java Example

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Upsert MongoDB Java Example

This post will talk about upsert mongodb java example.
Consider a scenario where we have to MongoDB Official Logo
write the logic such that – we will
search for a record in the database
and if it is available in database we
will update it else we will insert a
new record with same information.
Conventional solution for this type of problem is first you will try to find the record in MongoDB either using findOne() or find() , and on Continue reading Upsert MongoDB Java Example

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS

Can’t serialize class – MongoDB Illegal Argument Exception

While working on the array modifiers example MongoDb
, I was trying to use the $sort
modifier with $each and $push modifier
.In that example I added
an array of books to my original
document and was trying to sort it on the basis of one of the fields.As soon as I executed that method,i got our infamous IllegalArgumentException : Exception in thread “main” java.lang.IllegalArgumentException: can’t serialize class com.lotusmedia.mongo.models.Book (Can’t serialize class – MongoDB). Continue reading Can’t serialize class – MongoDB Illegal Argument Exception

Heartbleed hit – OpenSSL gets support

Nobody would have ever imagined that heartbleeda very small bug in the OpenSSL now famously known as Heartbleed could bring entire internet industry on its knees. Finally everything settled down without any major incident reported but steps need to be taken so that these types of bug can be avoided in future. You might find it surprising that OpenSSL project has only 1 full-time developer (Hats off to this guy) who is responsible for development and maintenance of OpenSSL libraries, mentioned by OpenSSL Software foundation president Steve Marquess in a blog post. Continue reading Heartbleed hit – OpenSSL gets support

Array Modifiers Update MongoDB Java Example

This post is in continuation of our Update MongoDB Java Example series.

In the previous post we have Logical Querying MongoDB Java Exampleseen some of the Atomic update modifiers provided by MongoDB with the help of a Java example ,that can be used to
update and add new key to a
document. Now we will move one step ahead and will look into the Array modifiers available in MongoDB. Below are the following Array Modifiers that we are going to cover in this post.

  • $push
  • $each
  • $slice

Continue reading Array Modifiers Update MongoDB Java Example