SlideShare a Scribd company logo
1 of 23
The Solution for Technical
Test
Claire Kim
1
Contents
1. Test Scenario and Plan
2. Batch System between MongoDB and MySQL
3. The sequence diagram of batch system
4. The sequence diagram of number of Batch Apps
5. RDB Batch App Structure
6. Issues of Converting Data to MySQL
7. RDB Schema - Organisation
8. RDB Schema - Role
9. RDB Schema - Country
10. RDB Schema - Product
11. RDB Schema - Teacher
12. RDB Schema - Student
13. RDB Schema - Player
14. The call Sequence of RDB Batch App
15. Some Code of RDB Batch App - Student
16. Test Environment
2
1. Test Scenario and Plan
3
1. Test Scenario and Plan
4
2. Batch System between MongoDB and MySQL
Master
Slave Slave -
Hidden
Slave
Special Tag for mirror to make dump at downtime.
MySQL
MongoDB
MongoDB Dump Server
RDB Batch Apps
RDB Batch App
1. Read Data from Dump server
2. Write the data on MySQL
3. Remove the data from Dump
server
5
Dump Server has only modified data list from
hidden Slave. E.g. lastModifiedTime in a day
3. The sequence diagram of batch system
● One Batch App can be operated.
● Can set up how many number of
data will be read from RDB Batch
App in App.Conf file.
● The data on MongoDB is not
removed if update/insert of it is
fail on MySQL.
● Batch App read again the data
and try to write on MySQL.
6
4. The sequence diagram of number of Batch Apps
● Multiple Batch App can be
operated if the estimation time of
completion to write on MySQL.
● It can be estimated by the size of
dump or the list of data.
● Recommend to read one
data from MongoDB.
○ Set up the
number of read
data = 1
7
Connection Pooling on MongoDB
5. RDB Batch App Structure
Connections of dump server
Connections of dump server
Connection Pooling on MySQL
Connections of MySQL
Connections of MySQL
Data
Read and
Transfer
On Thread
(Single)
8
6. Issues of Converting Data to MySQL
1. Convert ObjectID(bson) on MongoDB to VARCHAR(25) on MySQL
2. Integer primary keys on MySQL to be used efficiently.
Example MongoDB MySQL
Student oid ObjectID(12) VARCHAR(25)
Organisation oid ObjectID(12) VARCHAR(25)
MySQL
Field Data Type
StudentID BIGINT(20), Primary Key
StudentOID VARCHAR(25), Unique
● The issues can be solved by the purpose to use MySQL Database.
9
7. RDB Schema - Organisation
Organisation has the number of their classes.
ClassID can be unique with organisation ID by the
requirements.1 : N
10
8. RDB Schema - Role
Role Table
List of RoleID
1. Teacher
2. Student
3. Teacher & Tester
4. Student & Tester
5. Developer
11
9. RDB Schema - Country
Country Table
1. country Code is unique.
2. Language Code is unique.
countryID can be created as unique ID or the
combination of city code and country code. It
depends on how it can be used in other tools.
12
10. RDB Schema - Product
Product Table
productID is unique and can have multiple branchIDs
1 : N
13
11. RDB Schema - Teacher
2
3
5
4
6
1. roleID in role Table
2. countryID in Country Table
3. classID in Organisation Table.
4. productID in Product table
5. branchID in ProductBranch
table
1 1 : N
1 : 1 1 : 1
14
12. RDB Schema - Student
1
2
4
5
1. studentID is created in the insert with
auto_increasement.
studentOID is ObjectID of MongoDB.
2. roleID in role Table
3. studientID of StudentProfile is used in
StudentLoginConfig table as primary
and foreign keys.
4. productID in Product table
5. branchID in ProductBranch table3
1 : 1
● Add fields - CreatedTimeByBatch, LastUpdatedTimeByBatch in
StudentProfile and StudentLoginConfig Tables will be useful.
15
13. RDB Schema - Player
1
2 4
5
1. playerID is created by MySQL as integer type.
Student can have the number players if possible.
2. playerOID is ObjectID in Student Document of
MongoDB.
3. studentID is uniqueID of StudentProfile Table.
4. uID is unique PlayerEquipmentID like item unique ID.
Player can have the number of equipments like hairs.
5. playerID is the primary key of Player Table.
3
1 : N
16
14. The call Sequence of RDB Batch App
11. If update failed, the data doesn’t b
removed. The data will be read by 3.
4. The number of find data can be set up in App
Store
procedure
17
15. Some Code of RDB Batch App - Student
18
15. Some Code of RDB Batch App - Student
19
15. Some Code of RDB Batch App - Student
20
15. Some Code of RDB Batch App - Student
21
15. Some Code of
RDB Batch App -
Student
22
16. Test Environment
● OS : Debian 8
● MongoDB : v3.6.3
● MySQL : 10.2.14-MariaDB
● Development Tool : Visual Studio Community 2017
23

More Related Content

Similar to The solution for technical test claire kim

Asp.net Lab manual
Asp.net Lab manualAsp.net Lab manual
Asp.net Lab manualTamil Dhasan
 
Introduction To MongoDB
Introduction To MongoDBIntroduction To MongoDB
Introduction To MongoDBElieHannouch
 
Datastage Online Training|IBM Infosphere Datastage Training|Datastage 8.7 onl...
Datastage Online Training|IBM Infosphere Datastage Training|Datastage 8.7 onl...Datastage Online Training|IBM Infosphere Datastage Training|Datastage 8.7 onl...
Datastage Online Training|IBM Infosphere Datastage Training|Datastage 8.7 onl...onlinetraining24
 
Spring data presentation
Spring data presentationSpring data presentation
Spring data presentationOleksii Usyk
 
Architecting Wide-ranging Analytical Solutions with MongoDB
Architecting Wide-ranging Analytical Solutions with MongoDBArchitecting Wide-ranging Analytical Solutions with MongoDB
Architecting Wide-ranging Analytical Solutions with MongoDBMatthew Kalan
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDBRaghunath A
 
MongoDB Tips and Tricks
MongoDB Tips and TricksMongoDB Tips and Tricks
MongoDB Tips and TricksM Malai
 
Building Hybrid data cluster using PostgreSQL and MongoDB
Building Hybrid data cluster using PostgreSQL and MongoDBBuilding Hybrid data cluster using PostgreSQL and MongoDB
Building Hybrid data cluster using PostgreSQL and MongoDBAshnikbiz
 
Mdb dn 2017_18_query_hackathon
Mdb dn 2017_18_query_hackathonMdb dn 2017_18_query_hackathon
Mdb dn 2017_18_query_hackathonDaniel M. Farrell
 
An introduction to MongoDB by César Trigo #OpenExpoDay 2014
An introduction to MongoDB by César Trigo #OpenExpoDay 2014An introduction to MongoDB by César Trigo #OpenExpoDay 2014
An introduction to MongoDB by César Trigo #OpenExpoDay 2014OpenExpoES
 
An introduction to MongoDB
An introduction to MongoDBAn introduction to MongoDB
An introduction to MongoDBCésar Trigo
 
Copy of MongoDB .pptx
Copy of MongoDB .pptxCopy of MongoDB .pptx
Copy of MongoDB .pptxnehabsairam
 

Similar to The solution for technical test claire kim (20)

Mongodb Introduction
Mongodb IntroductionMongodb Introduction
Mongodb Introduction
 
Mongodb By Vipin
Mongodb By VipinMongodb By Vipin
Mongodb By Vipin
 
Asp.net Lab manual
Asp.net Lab manualAsp.net Lab manual
Asp.net Lab manual
 
Mongo db
Mongo dbMongo db
Mongo db
 
Introduction to mongodb
Introduction to mongodbIntroduction to mongodb
Introduction to mongodb
 
Introduction To MongoDB
Introduction To MongoDBIntroduction To MongoDB
Introduction To MongoDB
 
Online Datastage Training
Online Datastage TrainingOnline Datastage Training
Online Datastage Training
 
Datastage Online Training
Datastage Online TrainingDatastage Online Training
Datastage Online Training
 
Datastage Online Training|IBM Infosphere Datastage Training|Datastage 8.7 onl...
Datastage Online Training|IBM Infosphere Datastage Training|Datastage 8.7 onl...Datastage Online Training|IBM Infosphere Datastage Training|Datastage 8.7 onl...
Datastage Online Training|IBM Infosphere Datastage Training|Datastage 8.7 onl...
 
Spring data presentation
Spring data presentationSpring data presentation
Spring data presentation
 
Architecting Wide-ranging Analytical Solutions with MongoDB
Architecting Wide-ranging Analytical Solutions with MongoDBArchitecting Wide-ranging Analytical Solutions with MongoDB
Architecting Wide-ranging Analytical Solutions with MongoDB
 
MongoDB FabLab León
MongoDB FabLab LeónMongoDB FabLab León
MongoDB FabLab León
 
Introduction to MongoDB
Introduction to MongoDBIntroduction to MongoDB
Introduction to MongoDB
 
MongoDB Tips and Tricks
MongoDB Tips and TricksMongoDB Tips and Tricks
MongoDB Tips and Tricks
 
MAVRL Workshop 2014 - pymatgen-db & custodian
MAVRL Workshop 2014 - pymatgen-db & custodianMAVRL Workshop 2014 - pymatgen-db & custodian
MAVRL Workshop 2014 - pymatgen-db & custodian
 
Building Hybrid data cluster using PostgreSQL and MongoDB
Building Hybrid data cluster using PostgreSQL and MongoDBBuilding Hybrid data cluster using PostgreSQL and MongoDB
Building Hybrid data cluster using PostgreSQL and MongoDB
 
Mdb dn 2017_18_query_hackathon
Mdb dn 2017_18_query_hackathonMdb dn 2017_18_query_hackathon
Mdb dn 2017_18_query_hackathon
 
An introduction to MongoDB by César Trigo #OpenExpoDay 2014
An introduction to MongoDB by César Trigo #OpenExpoDay 2014An introduction to MongoDB by César Trigo #OpenExpoDay 2014
An introduction to MongoDB by César Trigo #OpenExpoDay 2014
 
An introduction to MongoDB
An introduction to MongoDBAn introduction to MongoDB
An introduction to MongoDB
 
Copy of MongoDB .pptx
Copy of MongoDB .pptxCopy of MongoDB .pptx
Copy of MongoDB .pptx
 

Recently uploaded

Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boody
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big BoodyDubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boody
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boodykojalkojal131
 
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)amitlee9823
 
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...amitlee9823
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...Pooja Nehwal
 
Call Girls Jayanagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jayanagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jayanagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jayanagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...amitlee9823
 
TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...
TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...
TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...robinsonayot
 
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)Delhi Call girls
 
Production Day 1.pptxjvjbvbcbcb bj bvcbj
Production Day 1.pptxjvjbvbcbcb bj bvcbjProduction Day 1.pptxjvjbvbcbcb bj bvcbj
Production Day 1.pptxjvjbvbcbcb bj bvcbjLewisJB
 
Internship Report].pdf iiwmoosmsosmshkssmk
Internship Report].pdf iiwmoosmsosmshkssmkInternship Report].pdf iiwmoosmsosmshkssmk
Internship Report].pdf iiwmoosmsosmshkssmkSujalTamhane
 
Resumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying OnlineResumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying OnlineBruce Bennett
 
Call Girls Btm Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Btm Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Btm Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Btm Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...amitlee9823
 
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...poojakaurpk09
 
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual serviceanilsa9823
 
Hyderabad 💫✅💃 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATIS...
Hyderabad 💫✅💃 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATIS...Hyderabad 💫✅💃 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATIS...
Hyderabad 💫✅💃 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATIS...sonalitrivedi431
 
TEST BANK For An Introduction to Brain and Behavior, 7th Edition by Bryan Kol...
TEST BANK For An Introduction to Brain and Behavior, 7th Edition by Bryan Kol...TEST BANK For An Introduction to Brain and Behavior, 7th Edition by Bryan Kol...
TEST BANK For An Introduction to Brain and Behavior, 7th Edition by Bryan Kol...rightmanforbloodline
 
Get To Know About "Lauren Prophet-Bryant''
Get To Know About "Lauren Prophet-Bryant''Get To Know About "Lauren Prophet-Bryant''
Get To Know About "Lauren Prophet-Bryant''Lauren Prophet-Bryant
 
Brand Analysis for reggaeton artist Jahzel.
Brand Analysis for reggaeton artist Jahzel.Brand Analysis for reggaeton artist Jahzel.
Brand Analysis for reggaeton artist Jahzel.GabrielaMiletti
 
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Dark Dubai Call Girls O525547819 Skin Call Girls Dubai
Dark Dubai Call Girls O525547819 Skin Call Girls DubaiDark Dubai Call Girls O525547819 Skin Call Girls Dubai
Dark Dubai Call Girls O525547819 Skin Call Girls Dubaikojalkojal131
 

Recently uploaded (20)

Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boody
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big BoodyDubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boody
Dubai Call Girls Demons O525547819 Call Girls IN DUbai Natural Big Boody
 
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
Call Girls Bidadi ☎ 7737669865☎ Book Your One night Stand (Bangalore)
 
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
Nandini Layout Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangal...
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Sa...
 
Call Girls Jayanagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jayanagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jayanagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jayanagar Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...
TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...
TEST BANK For Evidence-Based Practice for Nurses Appraisal and Application of...
 
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Salarpur Sector 81 ( Noida)
 
Production Day 1.pptxjvjbvbcbcb bj bvcbj
Production Day 1.pptxjvjbvbcbcb bj bvcbjProduction Day 1.pptxjvjbvbcbcb bj bvcbj
Production Day 1.pptxjvjbvbcbcb bj bvcbj
 
Internship Report].pdf iiwmoosmsosmshkssmk
Internship Report].pdf iiwmoosmsosmshkssmkInternship Report].pdf iiwmoosmsosmshkssmk
Internship Report].pdf iiwmoosmsosmshkssmk
 
Resumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying OnlineResumes, Cover Letters, and Applying Online
Resumes, Cover Letters, and Applying Online
 
Call Girls Btm Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Btm Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...Call Girls Btm Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
Call Girls Btm Layout Just Call 👗 7737669865 👗 Top Class Call Girl Service Ba...
 
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
Virgin Call Girls Delhi Service-oriented sexy call girls ☞ 9899900591 ☜ Rita ...
 
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual serviceCALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual service
CALL ON ➥8923113531 🔝Call Girls Gosainganj Lucknow best sexual service
 
Hyderabad 💫✅💃 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATIS...
Hyderabad 💫✅💃 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATIS...Hyderabad 💫✅💃 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATIS...
Hyderabad 💫✅💃 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATIS...
 
TEST BANK For An Introduction to Brain and Behavior, 7th Edition by Bryan Kol...
TEST BANK For An Introduction to Brain and Behavior, 7th Edition by Bryan Kol...TEST BANK For An Introduction to Brain and Behavior, 7th Edition by Bryan Kol...
TEST BANK For An Introduction to Brain and Behavior, 7th Edition by Bryan Kol...
 
Get To Know About "Lauren Prophet-Bryant''
Get To Know About "Lauren Prophet-Bryant''Get To Know About "Lauren Prophet-Bryant''
Get To Know About "Lauren Prophet-Bryant''
 
Brand Analysis for reggaeton artist Jahzel.
Brand Analysis for reggaeton artist Jahzel.Brand Analysis for reggaeton artist Jahzel.
Brand Analysis for reggaeton artist Jahzel.
 
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls South Delhi 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
VVVIP Call Girls In East Of Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In East Of Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...VVVIP Call Girls In East Of Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
VVVIP Call Girls In East Of Kailash ➡️ Delhi ➡️ 9999965857 🚀 No Advance 24HRS...
 
Dark Dubai Call Girls O525547819 Skin Call Girls Dubai
Dark Dubai Call Girls O525547819 Skin Call Girls DubaiDark Dubai Call Girls O525547819 Skin Call Girls Dubai
Dark Dubai Call Girls O525547819 Skin Call Girls Dubai
 

The solution for technical test claire kim

  • 1. The Solution for Technical Test Claire Kim 1
  • 2. Contents 1. Test Scenario and Plan 2. Batch System between MongoDB and MySQL 3. The sequence diagram of batch system 4. The sequence diagram of number of Batch Apps 5. RDB Batch App Structure 6. Issues of Converting Data to MySQL 7. RDB Schema - Organisation 8. RDB Schema - Role 9. RDB Schema - Country 10. RDB Schema - Product 11. RDB Schema - Teacher 12. RDB Schema - Student 13. RDB Schema - Player 14. The call Sequence of RDB Batch App 15. Some Code of RDB Batch App - Student 16. Test Environment 2
  • 3. 1. Test Scenario and Plan 3
  • 4. 1. Test Scenario and Plan 4
  • 5. 2. Batch System between MongoDB and MySQL Master Slave Slave - Hidden Slave Special Tag for mirror to make dump at downtime. MySQL MongoDB MongoDB Dump Server RDB Batch Apps RDB Batch App 1. Read Data from Dump server 2. Write the data on MySQL 3. Remove the data from Dump server 5 Dump Server has only modified data list from hidden Slave. E.g. lastModifiedTime in a day
  • 6. 3. The sequence diagram of batch system ● One Batch App can be operated. ● Can set up how many number of data will be read from RDB Batch App in App.Conf file. ● The data on MongoDB is not removed if update/insert of it is fail on MySQL. ● Batch App read again the data and try to write on MySQL. 6
  • 7. 4. The sequence diagram of number of Batch Apps ● Multiple Batch App can be operated if the estimation time of completion to write on MySQL. ● It can be estimated by the size of dump or the list of data. ● Recommend to read one data from MongoDB. ○ Set up the number of read data = 1 7
  • 8. Connection Pooling on MongoDB 5. RDB Batch App Structure Connections of dump server Connections of dump server Connection Pooling on MySQL Connections of MySQL Connections of MySQL Data Read and Transfer On Thread (Single) 8
  • 9. 6. Issues of Converting Data to MySQL 1. Convert ObjectID(bson) on MongoDB to VARCHAR(25) on MySQL 2. Integer primary keys on MySQL to be used efficiently. Example MongoDB MySQL Student oid ObjectID(12) VARCHAR(25) Organisation oid ObjectID(12) VARCHAR(25) MySQL Field Data Type StudentID BIGINT(20), Primary Key StudentOID VARCHAR(25), Unique ● The issues can be solved by the purpose to use MySQL Database. 9
  • 10. 7. RDB Schema - Organisation Organisation has the number of their classes. ClassID can be unique with organisation ID by the requirements.1 : N 10
  • 11. 8. RDB Schema - Role Role Table List of RoleID 1. Teacher 2. Student 3. Teacher & Tester 4. Student & Tester 5. Developer 11
  • 12. 9. RDB Schema - Country Country Table 1. country Code is unique. 2. Language Code is unique. countryID can be created as unique ID or the combination of city code and country code. It depends on how it can be used in other tools. 12
  • 13. 10. RDB Schema - Product Product Table productID is unique and can have multiple branchIDs 1 : N 13
  • 14. 11. RDB Schema - Teacher 2 3 5 4 6 1. roleID in role Table 2. countryID in Country Table 3. classID in Organisation Table. 4. productID in Product table 5. branchID in ProductBranch table 1 1 : N 1 : 1 1 : 1 14
  • 15. 12. RDB Schema - Student 1 2 4 5 1. studentID is created in the insert with auto_increasement. studentOID is ObjectID of MongoDB. 2. roleID in role Table 3. studientID of StudentProfile is used in StudentLoginConfig table as primary and foreign keys. 4. productID in Product table 5. branchID in ProductBranch table3 1 : 1 ● Add fields - CreatedTimeByBatch, LastUpdatedTimeByBatch in StudentProfile and StudentLoginConfig Tables will be useful. 15
  • 16. 13. RDB Schema - Player 1 2 4 5 1. playerID is created by MySQL as integer type. Student can have the number players if possible. 2. playerOID is ObjectID in Student Document of MongoDB. 3. studentID is uniqueID of StudentProfile Table. 4. uID is unique PlayerEquipmentID like item unique ID. Player can have the number of equipments like hairs. 5. playerID is the primary key of Player Table. 3 1 : N 16
  • 17. 14. The call Sequence of RDB Batch App 11. If update failed, the data doesn’t b removed. The data will be read by 3. 4. The number of find data can be set up in App Store procedure 17
  • 18. 15. Some Code of RDB Batch App - Student 18
  • 19. 15. Some Code of RDB Batch App - Student 19
  • 20. 15. Some Code of RDB Batch App - Student 20
  • 21. 15. Some Code of RDB Batch App - Student 21
  • 22. 15. Some Code of RDB Batch App - Student 22
  • 23. 16. Test Environment ● OS : Debian 8 ● MongoDB : v3.6.3 ● MySQL : 10.2.14-MariaDB ● Development Tool : Visual Studio Community 2017 23