SlideShare una empresa de Scribd logo
1 de 42
Distributed Blood Bank
Management System Database
An Overview
1
Prepared By:
Saimunur Rahman
Dept. Computer Science & Engineering
International Islamic University Chittagong
2
Before I start my discussion
Let us know
What is Blood Bank?
3
What is Blood Bank?
 A blood bank is a cache or bank
of blood or blood components,
gathered as a result of blood
donation or collection, stored and
preserved for later use in blood
transfusion.
 The term "blood bank" typically refers
to a division of a hospital where the
storage of blood product occurs and
where proper testing is performed.
4
What is Blood Bank? (Cont.)
 It sometimes refers to a collection
center, and indeed some hospitals
also perform collection.
 The Blood Bank Management System
has been created with a purpose of
replacing all of paperwork done at the
Blood Bank.
 All aspects of blood banking is
completely managed by the software.
5
Basic Project Overview
 In this project we are trying to
implement a distributed database from
a centralized database of Blood Bank
Management System.
 Here, we have designed a distributed
database system for Blood Bank
Management from a centralized
database system.
 Which will increase the system
performance, reliability and
throughput.
6
Methodology
I have incorporated several
methodologies for creating this
system, which is shown in next slide
7
Methodology (Cont.)
8
Existing
System Review
i.e. Centralized
DB
Data
distribution
based on
horizontal
fragmentation
Getting Query
Statistics
Vertical
Fragmentation
based on
Query statistics
Figure: Developing Methodology
Methodology (Cont.)
 Existing System Review: First we
reviewed the existing centralized
database for Blood Bank Management
System that was also created by us.
 Data distribution based on
horizontal fragmentation: We have
distributed our data’s into several sites
which is the main criteria of distributed
database system.
9
Methodology (Cont.)
 Getting Query Statistics: After data
distribution into sites we are then
getting the query statistics and based
upon that we go for vertical
fragmentation.
 Vertical Fragmentation based on
Query statistics: Then we fragment
our site database vertically based on
site query statistics.
10
Methodology (Cont.)
 Vertical Fragmentation based on
Query statistics (Cont.): Vertical
fragmentation is actually for several
site applications which used to access
the data form database system.
 Here, are also calculating query hit
and miss for a general query
generated from a site.
11
Existing Centralized Database ERD
12
Sample Tables with Dates
13
Figure: Branch Table
Sample Tables with Dates
(Cont.)
14
Figure: Donor Table
Distribution among sites
15
Site Name Site area
Blood Bank Chwakbazar Chwakbazar
Blood Bank CMCH Prabortok Circle
Blood Bank Bahaddarhat Chandgaon
Blood Bank Anderkilla Anderkilla
Blood Bank Agrabad Agrabad
Blood Bank New Market New Market
Blood Bank CEPZ CEPZ
Blood Bank Halishohor Halishohor
Distribution among sites (Cont.)
16
Chwakbazar
Halishohor
CEPZ
New Market
Agrabad
Anderkilla
Chandgaon
Prabortok
Circle
Fig: Distributed Sites are connected with each Other where each of them
has their own data
Data Distribution techniques
 The data was distributed among the
sites based on horizontal
fragmentation technique.
 In SQL we are using SELECT
operation for horizontal fragmentation
of data. We did also same things here.
 We have used some simple
predicates for fragmentation with
SELECT operation for fragmentation.
17
Data Distribution techniques
(Cont.)
 SELECT * FROM
distributed_blood_bank.donor
where
sub_area='Chwakbazar’
 which selects all the table values within
that sub_area.
 We just put that values into site located
at Chwakbazar.
 We will use separate sub_area values
for different sites and after that we will
put them into their related sites.
18
Data Distribution techniques
(Cont.)
 The result of previous shown query is
given below:
 By this way we have also selected our
other table values.
19
Query Statistics Collection
 We have assumed some queries. Based
upon that we’ll make decision for vertical
fragmentation.
 Suppose we have some applications in
our site which generate quires in
following areas:
 Donor
◦ Find d_name,blood_group,phone via
sub_area
◦ Update donor details
◦ Etc
20
Query Statistics Collection
(Cont.)
 Branch
◦ Find branch_name,address phone via
sub_area
 Blood_Request
◦ Find
Name,address,hospital,blood_group,blood_a
mount,phone via branch_id
◦ Find
Name,hospital,blood_group,blood_amount,d
elivery_confirmation via branch_id
◦ Etc.
21
Query Statistics Collection
(Cont.)
 Blood
◦ Find donor_id,blood_amount via
branch_id
◦ Update donor_id,blood_amount via
branch_id
◦ Find Total_blood_amount_in_branch via
branch_id
◦ Find
donor_id,paid_amount,blood_amount via
branch_id
22
Query Statistics Collection
(Cont.)
 Employee
◦ Find
emp_id,emp_name,emp_address_emp_role,emp
_sal,phone,email via branch_id
◦ Find emp_id,emp_name,
emp_role,emp_sal,phone via branch_id
◦ Find emp_id,emp_name, emp_role,emp_sal via
branch_id
◦ Find emp_id, emp_sal, via branch_id
◦ Update
emp_id,emp_name,emp_address_emp_role,emp
_sal,phone via branch_id
◦ Etc.
23
Query Statistics Collection
(Cont.)
 These are our assumed quires that
can be generated from any of the 8
sites because all the sites have the
same table which is necessary for
every site operation.
24
Vertical Fragmentation based on
Query statistics
 We have fragmented the database vertically
based on the query written above.
 Fragments of Donor
◦ Donor_fragment1(d_id,d_name,address,blood_g
roup,phone)
◦ Donor_fragment1(d_id,br_id,area,sub_area,natio
nal_id,email)
 Fragments of Blood_request
◦ Bloodrequest_frg1(name,address,hospital,blood_
gruop,blood_amount,phone)
◦ Bloodrequest_frg2(id,name,delivery_confirmation
,email)
25
Vertical Fragmentation based on
Query statistics (Cont.)
 Fragments of Employee
◦ Employee_frag_1(emp_id,emp_name,em
p_address,emp_role,emp_sal,phone,emai
l)
◦ Employee_frag_2(emp_id,branch_id,emp
_area)
26
Testing Query Response Time
Using Centralized and
Distributed Model
 All models were developed by using
My-SQL web-based version integrated
on Xampp 1.7.7 server.
 Everything were tested by using My-
SQL server version.
27
Query Hit & Query Miss
Statistics
 Sometimes it is necessary to view the
blood availability around the area.
 At that time only query miss will be
occurred that means global query will
be generated.
 This possibility of query hit & query
miss is shown in a chart in next slide
28
Query Hit & Query Miss
Statistics (Cont.)
29
0
20
40
60
80
100
120
Query Hit
Query Miss
Figure: Query hit & Query miss statistics
Minimum Response Time at
Centralized Database &
Distributed Database
 Minimum Response Time is defined
as the minimum time required for
responding to a query in the
Centralized Database or in the local
site in case of distributed database.
 Minimum Response time of
centralized is more than the
distributed database here
30
Minimum Response Time at
Centralized Database &
Distributed Database (Cont.)
31
0
5
10
15
20
25
30
Centralized
Distributed
Figure: Minimum Response Time at Centralized Database &
Distributed Database
Maximum Response Time at
Centralized Database &
Distributed Database
 Maximum Response Time is defined as
the maximum time required for
responding to a query in the Centralized
Database
 Or in the local site in case of distributed
database (when data is not reside in
local site).
 Maximum Response time of centralized
is slightly more than the distributed
database here.
32
Maximum Response Time at
Centralized Database &
Distributed Database (Cont.)
33
0
5
10
15
20
25
30
Centralized
Distributed
Figure: Maximum Response Time at Centralized Database &
Distributed Database
Average Response Time at
Centralized Database &
Distributed Database
 Average Response Time is defined as
the average time required for
responding to a query in the
Centralized Database or in the local
site in case of distributed.
34
Average Response Time at
Centralized Database &
Distributed Database
35
0
5
10
15
20
25
30
Centralized
Distributed
Figure: Average Response Time at Centralized Database &
Distributed Database
Conclusion
 The purpose of conducting this study
& doing project is to know the
conversion of Centralized DB to
Distributed DB
 And its impact on the response time
while moving from centralized to
distributed databases.
 Distributed databases have many
aspects and every organization has
certain preferences.
36
Conclusion (Cont.)
 For this sector, the response time is
prioritized.
 Our experiment showed that the
average response time is decreased if
we switch from centralized database
to distributed database.
 In distribution we put the data to
the site where it is used most
frequently.
37
Conclusion (Cont.)
 This locality of data reduces the
response time.
 In the distributed database, data is
fragmented. These fragments are
short compared to the full database
(centralized database contains
maximum columns).
38
Conclusion (Cont.)
 However, when we need data from
multiple sites for a query (report
queries), the response time is
increased.
 Accessing data from multiple remote
sites and then joining those takes long
time.
 But in the centralized database since
data is at one place so, it is easy and
fast to search it.
39
Conclusion (Cont.)
 Experiment results showed that the
response time is decreased in
distributed databases.
 Due to fragmentation data set for
single site contains less records than
centralized database, so response
time is less.
40
Any Question??
Fell free to ask me
I would love to ans. Them.
41
Thank You All
42

Más contenido relacionado

La actualidad más candente

Online blood bank management system
Online blood bank management systemOnline blood bank management system
Online blood bank management system
skk4646
 
Blood Bank Management System by CDAC
Blood Bank Management System by CDACBlood Bank Management System by CDAC
Blood Bank Management System by CDAC
Saurav Gupta
 
Blood Bank(Web Application)
Blood Bank(Web Application)Blood Bank(Web Application)
Blood Bank(Web Application)
maheshkarthikd
 
Blood bank-data-abstract-php-project
Blood bank-data-abstract-php-projectBlood bank-data-abstract-php-project
Blood bank-data-abstract-php-project
narii
 
Blood donation
Blood donationBlood donation
Blood donation
Sayeem Uddin
 

La actualidad más candente (20)

IT Project on Blood Bank Management system
IT Project on Blood Bank Management systemIT Project on Blood Bank Management system
IT Project on Blood Bank Management system
 
Project proposal presentation(blood bank management system)
Project proposal presentation(blood bank management system)Project proposal presentation(blood bank management system)
Project proposal presentation(blood bank management system)
 
Blood Bank Management Information System [Web-Url: http://infobloodbank.somee...
Blood Bank Management Information System [Web-Url: http://infobloodbank.somee...Blood Bank Management Information System [Web-Url: http://infobloodbank.somee...
Blood Bank Management Information System [Web-Url: http://infobloodbank.somee...
 
Blood bank mange project presentation
Blood bank mange project presentationBlood bank mange project presentation
Blood bank mange project presentation
 
ONLINE BLOOD BANKING SYSTEM
ONLINE BLOOD BANKING SYSTEMONLINE BLOOD BANKING SYSTEM
ONLINE BLOOD BANKING SYSTEM
 
Online blood bank management system
Online blood bank management systemOnline blood bank management system
Online blood bank management system
 
Blood donor managment system
Blood donor managment systemBlood donor managment system
Blood donor managment system
 
Blood Bank Management System Project Proposal
Blood Bank Management System Project ProposalBlood Bank Management System Project Proposal
Blood Bank Management System Project Proposal
 
Blood bank report new
Blood bank report newBlood bank report new
Blood bank report new
 
Blood Bank Management System by CDAC
Blood Bank Management System by CDACBlood Bank Management System by CDAC
Blood Bank Management System by CDAC
 
Report on Smart Blood Bank project
Report on Smart Blood Bank projectReport on Smart Blood Bank project
Report on Smart Blood Bank project
 
Blood Bank Management System
Blood Bank Management SystemBlood Bank Management System
Blood Bank Management System
 
SRS on Online Blood Bank Managment system...
SRS on Online Blood Bank Managment system... SRS on Online Blood Bank Managment system...
SRS on Online Blood Bank Managment system...
 
Blood bank
Blood bankBlood bank
Blood bank
 
Blood Bank Management System
Blood Bank Management SystemBlood Bank Management System
Blood Bank Management System
 
Blood Bank(Web Application)
Blood Bank(Web Application)Blood Bank(Web Application)
Blood Bank(Web Application)
 
Blood-bank-project
Blood-bank-projectBlood-bank-project
Blood-bank-project
 
Blood bank-data-abstract-php-project
Blood bank-data-abstract-php-projectBlood bank-data-abstract-php-project
Blood bank-data-abstract-php-project
 
Blood Bank Management System (including UML diagrams)
Blood Bank Management System (including UML diagrams)Blood Bank Management System (including UML diagrams)
Blood Bank Management System (including UML diagrams)
 
Blood donation
Blood donationBlood donation
Blood donation
 

Destacado

documentation on bank management system
documentation on bank management systemdocumentation on bank management system
documentation on bank management system
Unsa Jawaid
 
SYNOPSIS ON BANK MANAGEMENT SYSTEM
SYNOPSIS ON BANK MANAGEMENT SYSTEMSYNOPSIS ON BANK MANAGEMENT SYSTEM
SYNOPSIS ON BANK MANAGEMENT SYSTEM
Nitish Xavier Tirkey
 

Destacado (14)

MOVIE TICKET BOOKING-COMPUTER SCIENCE C++ PROJECT
MOVIE TICKET BOOKING-COMPUTER SCIENCE C++ PROJECTMOVIE TICKET BOOKING-COMPUTER SCIENCE C++ PROJECT
MOVIE TICKET BOOKING-COMPUTER SCIENCE C++ PROJECT
 
Railway reservation(c++ project)
Railway reservation(c++ project)Railway reservation(c++ project)
Railway reservation(c++ project)
 
Waste Management System
Waste Management SystemWaste Management System
Waste Management System
 
Criminal Record Management
Criminal Record ManagementCriminal Record Management
Criminal Record Management
 
Zoo management system
Zoo management systemZoo management system
Zoo management system
 
Bank Management System
Bank Management SystemBank Management System
Bank Management System
 
documentation on bank management system
documentation on bank management systemdocumentation on bank management system
documentation on bank management system
 
Bus Booking Management System
Bus Booking Management SystemBus Booking Management System
Bus Booking Management System
 
Transportation management system
Transportation management systemTransportation management system
Transportation management system
 
c++ report file for theatre management project
c++ report file for theatre management projectc++ report file for theatre management project
c++ report file for theatre management project
 
SYNOPSIS ON BANK MANAGEMENT SYSTEM
SYNOPSIS ON BANK MANAGEMENT SYSTEMSYNOPSIS ON BANK MANAGEMENT SYSTEM
SYNOPSIS ON BANK MANAGEMENT SYSTEM
 
Computer science project work
Computer science project workComputer science project work
Computer science project work
 
5 Reasons Why Healthcare Data is Unique and Difficult to Measure
5 Reasons Why Healthcare Data is Unique and Difficult to Measure5 Reasons Why Healthcare Data is Unique and Difficult to Measure
5 Reasons Why Healthcare Data is Unique and Difficult to Measure
 
Database vs Data Warehouse: A Comparative Review
Database vs Data Warehouse: A Comparative ReviewDatabase vs Data Warehouse: A Comparative Review
Database vs Data Warehouse: A Comparative Review
 

Similar a Distributed blood bank management system database

E_BLOODBANK PROJECT PRESENTATION REPORT.pptx
E_BLOODBANK PROJECT PRESENTATION REPORT.pptxE_BLOODBANK PROJECT PRESENTATION REPORT.pptx
E_BLOODBANK PROJECT PRESENTATION REPORT.pptx
ss1sumitsatish
 
Assignment 1 LASA 2 Implementing Six Sigma at Wishmewell Hospita.docx
Assignment 1 LASA 2 Implementing Six Sigma at Wishmewell Hospita.docxAssignment 1 LASA 2 Implementing Six Sigma at Wishmewell Hospita.docx
Assignment 1 LASA 2 Implementing Six Sigma at Wishmewell Hospita.docx
sherni1
 

Similar a Distributed blood bank management system database (20)

Bloodbank
BloodbankBloodbank
Bloodbank
 
Data Integration Lecture Notes
Data Integration Lecture NotesData Integration Lecture Notes
Data Integration Lecture Notes
 
Msbi Architecture
Msbi ArchitectureMsbi Architecture
Msbi Architecture
 
Cal Essay
Cal EssayCal Essay
Cal Essay
 
Grds conferences icst and icbelsh (10)
Grds conferences icst and icbelsh (10)Grds conferences icst and icbelsh (10)
Grds conferences icst and icbelsh (10)
 
P2P Cache Resolution System for MANET
P2P Cache Resolution System for MANETP2P Cache Resolution System for MANET
P2P Cache Resolution System for MANET
 
group project
group projectgroup project
group project
 
Week 7 Database Development Process
Week 7 Database Development ProcessWeek 7 Database Development Process
Week 7 Database Development Process
 
Cb pattern trees identifying
Cb pattern trees  identifyingCb pattern trees  identifying
Cb pattern trees identifying
 
S01821121124
S01821121124S01821121124
S01821121124
 
Updating and Scheduling of Streaming Web Services in Data Warehouses
Updating and Scheduling of Streaming Web Services in Data WarehousesUpdating and Scheduling of Streaming Web Services in Data Warehouses
Updating and Scheduling of Streaming Web Services in Data Warehouses
 
E_BLOODBANK PROJECT PRESENTATION REPORT.pptx
E_BLOODBANK PROJECT PRESENTATION REPORT.pptxE_BLOODBANK PROJECT PRESENTATION REPORT.pptx
E_BLOODBANK PROJECT PRESENTATION REPORT.pptx
 
Top System Design Interview Questions
Top System Design Interview QuestionsTop System Design Interview Questions
Top System Design Interview Questions
 
S18 das
S18 dasS18 das
S18 das
 
dokumen.tips_srs-on-online-blood-bank-managment-system.pdf
dokumen.tips_srs-on-online-blood-bank-managment-system.pdfdokumen.tips_srs-on-online-blood-bank-managment-system.pdf
dokumen.tips_srs-on-online-blood-bank-managment-system.pdf
 
Assignment 1 LASA 2 Implementing Six Sigma at Wishmewell Hospita.docx
Assignment 1 LASA 2 Implementing Six Sigma at Wishmewell Hospita.docxAssignment 1 LASA 2 Implementing Six Sigma at Wishmewell Hospita.docx
Assignment 1 LASA 2 Implementing Six Sigma at Wishmewell Hospita.docx
 
INT 1010 07-6.pdf
INT 1010 07-6.pdfINT 1010 07-6.pdf
INT 1010 07-6.pdf
 
Blood bank in network
Blood bank in networkBlood bank in network
Blood bank in network
 
Data Warehousing AWS 12345
Data Warehousing AWS 12345Data Warehousing AWS 12345
Data Warehousing AWS 12345
 
Data Warehouse ( Dw Of Dwh )
Data Warehouse ( Dw Of Dwh )Data Warehouse ( Dw Of Dwh )
Data Warehouse ( Dw Of Dwh )
 

Último

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Último (20)

Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 

Distributed blood bank management system database

  • 1. Distributed Blood Bank Management System Database An Overview 1
  • 2. Prepared By: Saimunur Rahman Dept. Computer Science & Engineering International Islamic University Chittagong 2
  • 3. Before I start my discussion Let us know What is Blood Bank? 3
  • 4. What is Blood Bank?  A blood bank is a cache or bank of blood or blood components, gathered as a result of blood donation or collection, stored and preserved for later use in blood transfusion.  The term "blood bank" typically refers to a division of a hospital where the storage of blood product occurs and where proper testing is performed. 4
  • 5. What is Blood Bank? (Cont.)  It sometimes refers to a collection center, and indeed some hospitals also perform collection.  The Blood Bank Management System has been created with a purpose of replacing all of paperwork done at the Blood Bank.  All aspects of blood banking is completely managed by the software. 5
  • 6. Basic Project Overview  In this project we are trying to implement a distributed database from a centralized database of Blood Bank Management System.  Here, we have designed a distributed database system for Blood Bank Management from a centralized database system.  Which will increase the system performance, reliability and throughput. 6
  • 7. Methodology I have incorporated several methodologies for creating this system, which is shown in next slide 7
  • 8. Methodology (Cont.) 8 Existing System Review i.e. Centralized DB Data distribution based on horizontal fragmentation Getting Query Statistics Vertical Fragmentation based on Query statistics Figure: Developing Methodology
  • 9. Methodology (Cont.)  Existing System Review: First we reviewed the existing centralized database for Blood Bank Management System that was also created by us.  Data distribution based on horizontal fragmentation: We have distributed our data’s into several sites which is the main criteria of distributed database system. 9
  • 10. Methodology (Cont.)  Getting Query Statistics: After data distribution into sites we are then getting the query statistics and based upon that we go for vertical fragmentation.  Vertical Fragmentation based on Query statistics: Then we fragment our site database vertically based on site query statistics. 10
  • 11. Methodology (Cont.)  Vertical Fragmentation based on Query statistics (Cont.): Vertical fragmentation is actually for several site applications which used to access the data form database system.  Here, are also calculating query hit and miss for a general query generated from a site. 11
  • 13. Sample Tables with Dates 13 Figure: Branch Table
  • 14. Sample Tables with Dates (Cont.) 14 Figure: Donor Table
  • 15. Distribution among sites 15 Site Name Site area Blood Bank Chwakbazar Chwakbazar Blood Bank CMCH Prabortok Circle Blood Bank Bahaddarhat Chandgaon Blood Bank Anderkilla Anderkilla Blood Bank Agrabad Agrabad Blood Bank New Market New Market Blood Bank CEPZ CEPZ Blood Bank Halishohor Halishohor
  • 16. Distribution among sites (Cont.) 16 Chwakbazar Halishohor CEPZ New Market Agrabad Anderkilla Chandgaon Prabortok Circle Fig: Distributed Sites are connected with each Other where each of them has their own data
  • 17. Data Distribution techniques  The data was distributed among the sites based on horizontal fragmentation technique.  In SQL we are using SELECT operation for horizontal fragmentation of data. We did also same things here.  We have used some simple predicates for fragmentation with SELECT operation for fragmentation. 17
  • 18. Data Distribution techniques (Cont.)  SELECT * FROM distributed_blood_bank.donor where sub_area='Chwakbazar’  which selects all the table values within that sub_area.  We just put that values into site located at Chwakbazar.  We will use separate sub_area values for different sites and after that we will put them into their related sites. 18
  • 19. Data Distribution techniques (Cont.)  The result of previous shown query is given below:  By this way we have also selected our other table values. 19
  • 20. Query Statistics Collection  We have assumed some queries. Based upon that we’ll make decision for vertical fragmentation.  Suppose we have some applications in our site which generate quires in following areas:  Donor ◦ Find d_name,blood_group,phone via sub_area ◦ Update donor details ◦ Etc 20
  • 21. Query Statistics Collection (Cont.)  Branch ◦ Find branch_name,address phone via sub_area  Blood_Request ◦ Find Name,address,hospital,blood_group,blood_a mount,phone via branch_id ◦ Find Name,hospital,blood_group,blood_amount,d elivery_confirmation via branch_id ◦ Etc. 21
  • 22. Query Statistics Collection (Cont.)  Blood ◦ Find donor_id,blood_amount via branch_id ◦ Update donor_id,blood_amount via branch_id ◦ Find Total_blood_amount_in_branch via branch_id ◦ Find donor_id,paid_amount,blood_amount via branch_id 22
  • 23. Query Statistics Collection (Cont.)  Employee ◦ Find emp_id,emp_name,emp_address_emp_role,emp _sal,phone,email via branch_id ◦ Find emp_id,emp_name, emp_role,emp_sal,phone via branch_id ◦ Find emp_id,emp_name, emp_role,emp_sal via branch_id ◦ Find emp_id, emp_sal, via branch_id ◦ Update emp_id,emp_name,emp_address_emp_role,emp _sal,phone via branch_id ◦ Etc. 23
  • 24. Query Statistics Collection (Cont.)  These are our assumed quires that can be generated from any of the 8 sites because all the sites have the same table which is necessary for every site operation. 24
  • 25. Vertical Fragmentation based on Query statistics  We have fragmented the database vertically based on the query written above.  Fragments of Donor ◦ Donor_fragment1(d_id,d_name,address,blood_g roup,phone) ◦ Donor_fragment1(d_id,br_id,area,sub_area,natio nal_id,email)  Fragments of Blood_request ◦ Bloodrequest_frg1(name,address,hospital,blood_ gruop,blood_amount,phone) ◦ Bloodrequest_frg2(id,name,delivery_confirmation ,email) 25
  • 26. Vertical Fragmentation based on Query statistics (Cont.)  Fragments of Employee ◦ Employee_frag_1(emp_id,emp_name,em p_address,emp_role,emp_sal,phone,emai l) ◦ Employee_frag_2(emp_id,branch_id,emp _area) 26
  • 27. Testing Query Response Time Using Centralized and Distributed Model  All models were developed by using My-SQL web-based version integrated on Xampp 1.7.7 server.  Everything were tested by using My- SQL server version. 27
  • 28. Query Hit & Query Miss Statistics  Sometimes it is necessary to view the blood availability around the area.  At that time only query miss will be occurred that means global query will be generated.  This possibility of query hit & query miss is shown in a chart in next slide 28
  • 29. Query Hit & Query Miss Statistics (Cont.) 29 0 20 40 60 80 100 120 Query Hit Query Miss Figure: Query hit & Query miss statistics
  • 30. Minimum Response Time at Centralized Database & Distributed Database  Minimum Response Time is defined as the minimum time required for responding to a query in the Centralized Database or in the local site in case of distributed database.  Minimum Response time of centralized is more than the distributed database here 30
  • 31. Minimum Response Time at Centralized Database & Distributed Database (Cont.) 31 0 5 10 15 20 25 30 Centralized Distributed Figure: Minimum Response Time at Centralized Database & Distributed Database
  • 32. Maximum Response Time at Centralized Database & Distributed Database  Maximum Response Time is defined as the maximum time required for responding to a query in the Centralized Database  Or in the local site in case of distributed database (when data is not reside in local site).  Maximum Response time of centralized is slightly more than the distributed database here. 32
  • 33. Maximum Response Time at Centralized Database & Distributed Database (Cont.) 33 0 5 10 15 20 25 30 Centralized Distributed Figure: Maximum Response Time at Centralized Database & Distributed Database
  • 34. Average Response Time at Centralized Database & Distributed Database  Average Response Time is defined as the average time required for responding to a query in the Centralized Database or in the local site in case of distributed. 34
  • 35. Average Response Time at Centralized Database & Distributed Database 35 0 5 10 15 20 25 30 Centralized Distributed Figure: Average Response Time at Centralized Database & Distributed Database
  • 36. Conclusion  The purpose of conducting this study & doing project is to know the conversion of Centralized DB to Distributed DB  And its impact on the response time while moving from centralized to distributed databases.  Distributed databases have many aspects and every organization has certain preferences. 36
  • 37. Conclusion (Cont.)  For this sector, the response time is prioritized.  Our experiment showed that the average response time is decreased if we switch from centralized database to distributed database.  In distribution we put the data to the site where it is used most frequently. 37
  • 38. Conclusion (Cont.)  This locality of data reduces the response time.  In the distributed database, data is fragmented. These fragments are short compared to the full database (centralized database contains maximum columns). 38
  • 39. Conclusion (Cont.)  However, when we need data from multiple sites for a query (report queries), the response time is increased.  Accessing data from multiple remote sites and then joining those takes long time.  But in the centralized database since data is at one place so, it is easy and fast to search it. 39
  • 40. Conclusion (Cont.)  Experiment results showed that the response time is decreased in distributed databases.  Due to fragmentation data set for single site contains less records than centralized database, so response time is less. 40
  • 41. Any Question?? Fell free to ask me I would love to ans. Them. 41