EE and EEE partitioning

1) From which version of EEE, partitioning is allowed? Which is the best suited version to use in EEE?

2) Using EE how do we achieve multiple partitioning which is provided in EEE and which version is suited most to achieve the same effect.

--- k_murli_krishna
LVL 17
k_murli_krishnaAsked:
Who is Participating?
 
mglxxxConnect With a Mentor Commented:
1) The first EEE version I used was 6.2. If I remember
correctly, there aren't any differences in how DB2
handles partitioning between 6.2 and 8.x. (There
are some new features in 8.x for how partitioned tables
are loaded, though)

2) One possibility I (still) need to test is:

1. Create several tables of identical structure having
a 'partitioning column', e.g. a year. I'll call these
'partition tables'.

2. Create a view which is a 'union all' of those tables
and contains a criterion in the 'where' clause, which
tells the optimizer that rows for a given year can be found
only in one of the partition tables, e.g.
create view all_years as
select ... from year_2001
where year = 2001
union all
select ... from year_2002
where year = 2002
.
.
.

I'll call this the 'union view'.

3. Test: create a select which accesses the 'union view'
only for a given year and for a críterion on some other
attribute of the partition tables.
E.g. let's assume that the union tables contain a
column 'product_category' and that there is an index
on that column.

Then a suitable test statement would be:

select count(*) from all_years
 where year = 2002
   and product_category = 'Widget'

If the optimizer is really smart, it should only
access the partition table year_2002 and use the
index on 'product_category' on that table.

If this works, this setup would be somewhat similar to
'partitioned view' Oracle introduced with 7.3 (I think).  
0
All Courses

From novice to tech pro — start learning today.