Database Research & Development

  • Home
  • NoSQL
    • NoSQL
    • Cassandra
  • Databases
    • Database Theory
    • Database Designing
    • SQL Server Coding Standards
    • SQL Server
    • PostgreSQL
    • MySQL
    • Greenplum
    • Linux
  • Interviews
    • SQL Server Interviews
    • MySQL Interviews
    • SQL Puzzles
  • DBA Scripts
    • SQL Server DBA Scripts
    • PostgreSQL DBA Scripts
    • MySQL DBA Scripts
    • Greenplum DBA Scripts
  • Home
  • Blog Archives !
  • (: Laugh@dbrnd :)
  • Contact Me !
sqlserverinterviews
Home 2016 November Database Theory: What is Parallel Query Processing (Parallel Database System)?

Database Theory: What is Parallel Query Processing (Parallel Database System)?

This article is half-done without your Comment! *** Please share your thoughts via Comment ***

In the past decade, lots of analysis and research one for the Parallel Database System and Parallel Query Processing.

The success of Parallel Database System depends on the relational database model and good CPU / DISK performance. Without a good CPU and DISK performance, we should not use the Parallel Query Processing.

In general,
When we are executing any SQL Query, It creates the execution plan and submits to the internal query executor. A query executor collects all execution plans and executes in sequence.
For example, your one SQL Query requires 100,00,0000 times manipulation, so using a single CPU thread system It takes more time to execute.

In the Parallel Query Processing,
More than one process worker running in the background and responsible for the same task or multiple tasks in the sharing mode.

parallelprocessing
For example, If we say 4 different process worker are executing one single big SQL Query which requires 100,00,0000 times manipulation, It completes the whole process four times faster than using single process worker or single CPU thread for same SQL Query.

Basically, there are main three types of architecture of Parallel Database System.

Shared Disk:

This approach is not that much popular where the same disk shared among the different background process workers.

Shared Nothing:

With a shared nothing system, each processor owns a portion of the database, and only that portion may be directly accessed or manipulated by that processor. A two-phase commit protocol is required to coordinate a transaction commit which involves multiple nodes.

A shared nothing system is based on the concept of declustering. Declustering a relation includes distributing its tuples among multiple nodes according to some distribution criteria such as applying a hash function to the key attribute of each tuple.

In the context of query processing, the main advantage of a shared nothing system is its scalability.
One of the best example of this architecture is: GreenPlum Relational Database.

Shared Everything:

In a shared everything system, main memory, in addition to disks, is also shared across all the processors, making system management and load balancing much easier.

First, there are no communication delays because messages are exchanged through the shared memory, and synchronization can be accomplished by cheap, low level mechanisms.

Second, load balancing is much easier because the operating system can automatically allocate the next ready process to the first available processor.

Tomorrow, You can access one good article about Performance Test of Parallel Query Processing using PostgreSQL 9.6 Database System.

Nov 20, 2016Anvesh Patel
PostgreSQL: How to generate a DeadLock in a Database (ERROR: deadlock detected)PostgreSQL 9.6: Powerful Parallel Query Processing - Full Performance Test
Comments: 3
  1. Santhosha
    November 28, 2016 at 5:57 pm

    Nice article. What is the root cause for ORA-12801 and ORA-01652 unable to extend temp segment when processing on parallel queries.

    • Anvesh Patel
      Anvesh Patel
      November 28, 2016 at 6:39 pm

      Sorry Santhosha, no Idea about this error.
      But I searched on Google and found one reason for this error. May be It helps you.
      ” The ORA-1652 error is your problem. Your query is performing a sort operation that cannot complete in memory alone. Therefore, it needs to use disk space to complete that sort operation. That disk space is taken from the TEMP tablespace. The ORA-1652 error is telling you that there is not enough room in this tablespace. “

  2. Dineshkumar
    December 18, 2018 at 5:46 am

    set work area policy manuall increase sort area size in that query sesssion

Anvesh Patel
Anvesh Patel

Database Engineer

November 20, 2016 Database TheoryAnvesh Patel, database, database concept, database research and development, database standards, Database Theory, database topic, dbrnd, Parallel Database System, Parallel Query Processing, RDBMS
About Me!

I'm Anvesh Patel, a Database Engineer certified by Oracle and IBM. I'm working as a Database Architect, Database Optimizer, Database Administrator, Database Developer. Providing the best articles and solutions for different problems in the best manner through my blogs is my passion. I have more than six years of experience with various RDBMS products like MSSQL Server, PostgreSQL, MySQL, Greenplum and currently learning and doing research on BIGData and NoSQL technology. -- Hyderabad, India.

About DBRND !

dbrnd

This is a personal blog (www.dbrnd.com).

Any views or opinions represented in this blog are personal and belong solely to the blog owner and do not represent those of people, institutions or organizations that the owner may or may not be associated with in professional or personal capacity, unless explicitly stated.

Feel free to challenge me, disagree with me, or tell me I’m completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or anonymous comments) - so keep it polite.

The content of this website is protected by copyright. No portion of this website may be copied or replicated in any form without the written consent of the website owner.

Recent Comments !
  • Anvesh Patel { Sure will do... } – May 27, 12:43 PM
  • Anvesh Patel { Great... } – May 27, 12:41 PM
  • Anvesh Patel { Great... } – May 27, 12:39 PM
  • Anvesh Patel { Great... } – May 27, 12:36 PM
  • Anvesh Patel { Great... } – May 27, 12:28 PM
  • Anvesh Patel { Great... } – May 27, 12:27 PM
  • Anvesh Patel { Great... } – May 27, 12:16 PM
  • Older »
Follow Me !
  • facebook
  • linkedin
  • twitter
  • youtube
  • google
  • flickr
© 2015 – 2019 All rights reserved. Database Research & Development (dbrnd.com)
Posting....