Skip navigation
12378 Views 4 Replies Latest reply: Feb 23, 2010 3:01 AM by Paul Froggatt RSS
Vijay New Enzee 9 posts since
Jan 5, 2009
Currently Being Moderated

Feb 22, 2010 11:15 PM

How does an SMP distributes a query to SPUs

Hi All,

I have a doubt.

When a query is fired. Does the query snippet goes to all the SPUs or it goes to only the necessary SPUs. If it goes to only the necessary SPUs, how will the SMP know which all SPUs to hit

  • David Birmingham Active Enzee 429 posts since
    Sep 24, 2007
    Currently Being Moderated
    1. Feb 23, 2010 12:40 AM (in response to Vijay)
    Re: How does an SMP distributes a query to SPUs

    The Netezza machine is an AMPP (asymmetric MPP) not an SMP, although it has an SMP host running Linux

     

    When you submit a query, the query is sent to all SPUs and executed on all SPUs. Any SPU with data that answers the query will return that data.

     

    But each query activates all SPUs, and this is why it is important to remember that Netezza is not a transactional machine. One-record inserts and one-record queries will still activate all SPUs, even if only one will ultimately do work. So you can insert one record in one second, or a million records in one second. It's a matter of how you will use the second.

  • Paul Froggatt Active Enzee 220 posts since
    May 20, 2006
    Currently Being Moderated
    4. Feb 23, 2010 3:01 AM (in response to Vijay)
    Re: How does an SMP distributes a query to SPUs

    Correct, all SPU's will respond, the ones with no data will respond as such (obviously very quickly), the ones with data will respond with their results, all of this happens in parallel and data starts streaming through the HOST to the calling application as soon as possible.

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points