Author Topic: Changing a field to cluster="true"  (Read 2841 times)

J9CMOD

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Changing a field to cluster="true"
« on: October 29, 2015, 03:05:21 PM »
We created several Application Groups before we realized we did not have cluster="true" on any of the fields.  Now, I need to change a field to have cluster="true". Does anybody know how I can do that?  I tried using XML, and when it didn't work I got into the manuals and they indicate that cluster is not a field that can be updated.  This is causing our DBA issues, because they can't do her auto reorgs.
Here is an example of the xml that I used to try to update the cluster:

<applicationGroup name="CORP_XXX_I01_R3654_005" >
  <field name="POSTING_DATE" cluster="true" >     
  </field>                                       
</applicationGroup>                               

I ran this with my normal "update" jcl that I use to do any updates via XML.

I get the error (that I expected):

The cluster attribute of the field object cannot be updated.


Creating all new AG's would cause other issues, and applications have already been loaded to the existing AGs that are missing the clustering.

Does anybody know what options I may have?

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
    • View Profile
Re: Changing a field to cluster="true"
« Reply #1 on: October 30, 2015, 01:38:03 AM »
I could tell you how to modify this directly in the database.... but... but... since I've never used this "cluster" option, I really don't know what CMOD is doing in the background... meaning, that even if I give the way to do it... most probably that won't be enough, since some other actions needs to be done.
And I have no clue what kind of actions are needed... so I prefer not to tell you how to switch the flag from off to on...

Maybe in that case, it would be good to open a PMR, and explain your problem. Maybe the support will be able to help you to figure out, how to solve your problem.

Sorry, cannot do more than that....
Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2230
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Changing a field to cluster="true"
« Reply #2 on: October 30, 2015, 05:04:59 AM »
Here's an explanation of what a clustered index is, although it doesn't really describe what this does in terms of CMOD:

http://www.toadworld.com/platforms/ibmdb2/w/wiki/7219.clustering-indexes

It seems like a performance-related tweak, so if you're happy with your query performance, I wouldn't bother with it.

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

ewirtz

  • Full Member
  • ***
  • Posts: 134
    • View Profile
Re: Changing a field to cluster="true"
« Reply #3 on: December 03, 2015, 12:20:53 AM »
Hi,
it's a performance issue to optimise database access. There are two reasons to choose clustering:
a) to be sure that typical search requests hint to the same range of physical changes.
    ==> These searches can benefit from database cache
b) to reduce reorg effort
For archive systems usually a date or timestamp field is a good candidate for clustering.


Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
    • View Profile
Re: Changing a field to cluster="true"
« Reply #4 on: December 03, 2015, 08:35:15 PM »
Hi,
it's a performance issue to optimise database access. There are two reasons to choose clustering:
a) to be sure that typical search requests hint to the same range of physical changes.
    ==> These searches can benefit from database cache
b) to reduce reorg effort
For archive systems usually a date or timestamp field is a good candidate for clustering.


Then please contact IBM support by opening a PMR, I am sure they will be able to help you in finding a way to activate this flag. Or at least give you some other hints to achieve what you want to achieve to help for your performance problem, by using maybe some other options than this "cluster" setting.

If somebody in the forum knows something on that area, then please give us some answer!!!!!! :D
Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML