+ All Categories
Home > Software > Blogline - Mongo DB based blogging system

Blogline - Mongo DB based blogging system

Date post: 23-Jan-2017
Category:
Upload: dig-vijay-kumar-yarlagadda
View: 17 times
Download: 0 times
Share this document with a friend
27
Blogline Create. Comment. Explore Presentation by Dig Vijay Kumar Yarlagadda [email protected]
Transcript
Page 1: Blogline - Mongo DB based blogging system

BloglineCreate. Comment. Explore

Presentation by Dig Vijay Kumar Yarlagadda

[email protected]

Page 2: Blogline - Mongo DB based blogging system

Agenda• The objective of project is to develop web based

application for online blogging.

• To measure the performance analysis of MySQL and MongoDB.

Page 3: Blogline - Mongo DB based blogging system

Technical Aspects• Databases: MySQL, MongoDB• Front end: HTML, CSS, Twitter Bootstrap• Back end: PHP• Tools: XAMPP, Microsoft Excel

Page 4: Blogline - Mongo DB based blogging system

Challenges facedMemory and Timeout constraints of

databases

Connecting two different Systems

High disk usage on server computer

System Crash due to heavy data.

Page 5: Blogline - Mongo DB based blogging system

How we conquered? Increased memory and timeout constraints using

documentation.– http://php.net/manual/en/mongocursor.timeout.php– http://php.net/manual/en/mysql.configuration.php#ini.

mysql.connect-timeout Connected two systems using their IP addresses

and ports.

High disk usage – Wait patiently!

Reduce the number of final results

Page 6: Blogline - Mongo DB based blogging system

Roles Advaith Nandelli

– SQL Database design, Front end design, Testing.

Ravi Kumar Kurva

– MongoDB database design, SQL and MongoDB data population

Siva Rama Krishna Linga

– SQL Database design, SQL and MongoDB data population, Testing

Dig Vijay Kumar Yarlagadda

– PHP coding, SQL and MongoDB database design, data population Most of the work is done in groups

Page 7: Blogline - Mongo DB based blogging system
Page 8: Blogline - Mongo DB based blogging system

10K Blog posts

Page 9: Blogline - Mongo DB based blogging system

20K Blog posts

Page 10: Blogline - Mongo DB based blogging system

30K Blog posts

Page 11: Blogline - Mongo DB based blogging system

40K blog posts

Page 12: Blogline - Mongo DB based blogging system

50K blog posts

Page 13: Blogline - Mongo DB based blogging system

80K blog posts

Page 14: Blogline - Mongo DB based blogging system

100K blog posts

Page 15: Blogline - Mongo DB based blogging system

200K blog posts

Page 16: Blogline - Mongo DB based blogging system

500K blog posts

Page 17: Blogline - Mongo DB based blogging system

800K blog posts

Page 18: Blogline - Mongo DB based blogging system

1M blog posts

Page 19: Blogline - Mongo DB based blogging system

Finally….

Page 20: Blogline - Mongo DB based blogging system

Lessons learned• MySQL is powerful with all the features but slower

than MongoDB.• MongoDB is simple but fast, it’s suitability for large

amount of data is simply unmatched.• Displaying large number of records in single page

just doesn’t work. • Keeping entire blog data in a single collection in

MongoDB further improves performance.

Page 21: Blogline - Mongo DB based blogging system

Future scope

• Further improve upon response time• Add multiple pages for search results• Sorting the search results

Page 22: Blogline - Mongo DB based blogging system

Indexes

• Created indexes on – blog name – blog content– comment description – tag description– author name

• Increases size of databases but significantly improves performance.

Page 23: Blogline - Mongo DB based blogging system

Indexes - Results

Page 24: Blogline - Mongo DB based blogging system
Page 25: Blogline - Mongo DB based blogging system

References• https://secure.php.net/docs.php• https://docs.mongodb.org/manual/• https://dev.mysql.com/doc/• http://foldoc.org/• https://daveismyname.com/creating-a-blog-from-scratch-

with-php-bp

Page 26: Blogline - Mongo DB based blogging system
Page 27: Blogline - Mongo DB based blogging system

Recommended