Revision:OCR A2 ICT - Distributed Databases - The Student Room
The Student Room

Revision:OCR A2 ICT - Distributed Databases

TSR Wiki > Study Help > Subjects and Revision > Revision Notes > ICT > OCR A2 ICT - Distributed Databases


Distributed Databases

Definition

  • A single database that is spread physically across computers in multiple locations that are connected by data communication links (database stored in more than one place)


Why have distributed databases?

  • Allows local business units to have control over data
  • Allows data in local databases to be used together for decision making based upon the entire dataset


Reduce telecommunications costs by using the local database, rather than a distant option


Reduces the risk of telecommunications failures having a major impact, as less telecommunications hardware used


The database is spread across different sites

Each remote site has the data that is relevant to itself only

There are 3 core types:

  • Partitioned between sites
  • Entire databases duplicated at each site
  • Central database with remote local database


==Partitioned between sites

  • Not every location (node) needs to have all the data. Therefore the partitioned approach is giving each node the data that is relevant to itself.
  • If data is required by the node that is not held at the local database then a request for the data can be sent through the central computer (which holds a copy of all data or can link to it).
  • The central copy is updated during periods where the load on the database is less – in general this is overnight.
  • The data is split between sites either:
    • Vertically : different columns of a table located at different sites
      • E.g. stock descriptions (country of origin, supplier name at one site and prices at another site)
    • Horizontally : different records/rows of a table located at different sites
      • E.g. departments of a supermarket, fruit and veg at one site, dairy products at another site


Advantages

  • Data stored close to where it is used leading to increase in efficiency
  • Local access optimization leading to better performance
  • Only relevant data is available which leads to better security

Disadvantages

  • Accessing data across partitions (different sites) leads to inconsistent access speed
  • No data replication makes backups essential
  • Potential exists for inconsistency in the data stored
  • Additional disadvantage for vertical:
    • combining data across partitions is more difficult because it requires joins (more complex than joining horizontally split data)


Contents

Entire databases duplicated at each site

  • Instead of holding only the data that is relevant at each node, copies of the entire database are held at each node.
  • There is a problem with data integrity – Assume that node B updates record 1 locally. Node C also updates record 1 locally but after node B – hence we can assume that the node C data is more up to date and therefore more correct.
  • This is solved by effective record locking and effective database management software to control access to the data.
  • Hardware requirements are heavy as each node needs enough equipment to be able to handle the entire database.


Central database with remote local databases

  • No data is held at the local node, instead an index is held locally and this is used to find and then access the data is in the central database.
  • Indexes are the key data used to search the main database. Re-sorting an index into order when data is changed takes time, but a sorted index allows for fast searching of data
  • Very little hardware is required at the nodes, but the indexes need updating. In this method there is a lot of network traffic.
  • A ‘light’ alternative is to store the databases relevant to individual sites at that site, with an index being given to all databases
  • When data is required, the index gives the location of the data – this is not a central location but the location of the site that holds the required database


Advantages and Disadvantages of Methods 2 and 3

Advantages and disadvantages

  • Centralised database is useful for statistical analysis (e.g. sales figures) and backup
  • A distributed database may be less secure with more points of access for hackers
  • Decentralising increases complexity but reduces network traffic
  • Poor record locking and DBMS causes data reliability/integrity problems


Implementing Distributed Database Systems

Advantages (1)

  • Organizational structure
  • Breaks the network down with greater control over local access
  • Security
  • Can readily limit read/write access to different areas of the database
  • Local autonomy
  • Each local area is responsible for maintenance of its database/access (could be a disadvantage if one site is not up to scratch)
  • Errors are simpler to correct at a local level than a national level
  • Improved availability (not all or nothing)
  • Give access to parts of the database as required (some parts just require longer access time)


  • Improved reliability (replication)
  • Faster performance when held locally
    • if one node breaks down the rest can function (against the loss of the central node).
  • Economics
  • Smaller computers required at central and local nodes (assuming non full replication)
  • Less transmission cost as traffic is reduced (except index updates)
  • Modular Growth
    • easier to create new local nodes (anywhere in the world with satellite or undersea communications)


Disadvantages

  • Complexity
  • To maintain indexes, locations, updating, etc is complex
  • Cost
  • Often requires processing and storage at each site
    • permanent high speed links needed between sites
  • Security
  • Many locations and entry points to the system that need to be accounted for
  • Integrity control
  • Maintenance of data integrity needs to be maintained – it must not be possible to have one record updated in two sites at the same time


Also See


Comments

Discussions Toggle
SNOW
started by: meeow
forum: News and Current Affairs
replies: 347
last post: 1 Minute Ago
Liverpool john moores pharmacy!
started by: livvyyy
forum: Pharmacy
replies: 89
last post: 1 Minute Ago
Guilty Pleasures!
started by: TheRandomer
forum: Music
replies: 0
last post: 2 Minutes Ago
How much do you spend on clothes/accessories per week/month?
started by: northlincs4kylie
forum: Fashion and Beauty
replies: 7
last post: 2 Minutes Ago
Ken Livingstone says the Tories are 'riddled with homosexuals'....
started by: thunder_chunky
forum: News and Current Affairs
replies: 49
last post: 2 Minutes Ago
Current Year 10 Thread (2011/2012)
started by: Dougieowner
forum: GCSEs
replies: 1380
last post: 2 Minutes Ago
Second racist gang attacks on white man by "asians"
started by: Zeffy
forum: News and Current Affairs
replies: 40
last post: 2 Minutes Ago
TSR Graduate entry medics and applicants society!
started by: brokenangel
forum: Medicine Community Discussion
replies: 9672
last post: 2 Minutes Ago
The 11/12 NBA season thread
started by: S-man10
forum: Sport
replies: 1174
last post: 2 Minutes Ago
Who do you want to replace Capello as England manager?
started by: TRS-T
forum: Football
replies: 161
last post: 2 Minutes Ago
Contraception for teenagers
started by: Bobifier
forum: News and Current Affairs
replies: 32
last post: 2 Minutes Ago
Ed Miliband - will he be the Labour leader at the next election?
started by: shirley7
forum: UK Politics
replies: 36
last post: 2 Minutes Ago
Warwick Maths/MORSE/Stats applicants and questions 2012
started by: TheTallOne
forum: University of Warwick
replies: 333
last post: 3 Minutes Ago
Anxiety experiences and support
started by: Amwazicles
forum: Mental Health
replies: 2796
last post: 3 Minutes Ago
Diagnostic Radiography - 2012 Entry
started by: darreng
forum: Healthcare and Nursing
replies: 947
last post: 3 Minutes Ago
What is the most annoying song you've heard?
started by: justanotherindigo
forum: Music
replies: 92
last post: 3 Minutes Ago
Most annoying thing people do at University?
started by: The Phelps
forum: Student Life
replies: 228
last post: 3 Minutes Ago
Feb 2012 W100 people over here!
started by: Oppro
forum: Open University
replies: 186
last post: 3 Minutes Ago
What game are you currently playing?
started by: Ape Gone Insane
forum: Gaming
replies: 3041
last post: 3 Minutes Ago
MySQA 2012
started by: mysqa
forum: Scottish Qualifications
replies: 43
last post: 3 Minutes Ago
Article Updates Toggle
Contact Us | Site Rules | Staying Safe on TSR | Advertising | Staff Blog | Essays & Coursework | Terms & Conditions | Top
Customise your TSR | Life Advice | Hobbies and Interests | Debate and Current Affairs | Study Help | University and University courses
Universities and HE Colleges | Careers, Employment and Gap Years | General Discussion

Customise your TSR