Date post: | 23-Jan-2017 |
Category: |
Software |
Upload: | dig-vijay-kumar-yarlagadda |
View: | 17 times |
Download: | 0 times |
Agenda• The objective of project is to develop web based
application for online blogging.
• To measure the performance analysis of MySQL and MongoDB.
Technical Aspects• Databases: MySQL, MongoDB• Front end: HTML, CSS, Twitter Bootstrap• Back end: PHP• Tools: XAMPP, Microsoft Excel
Challenges facedMemory and Timeout constraints of
databases
Connecting two different Systems
High disk usage on server computer
System Crash due to heavy data.
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
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
10K Blog posts
20K Blog posts
30K Blog posts
40K blog posts
50K blog posts
80K blog posts
100K blog posts
200K blog posts
500K blog posts
800K blog posts
1M blog posts
Finally….
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.
Future scope
• Further improve upon response time• Add multiple pages for search results• Sorting the search results
Indexes
• Created indexes on – blog name – blog content– comment description – tag description– author name
• Increases size of databases but significantly improves performance.
Indexes - Results
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