Skip to main content

alphaWorks  >  Forums  >  IBM Rational Team API  >  developerWorks

CqProvider caching old CqRecord data    Point your RSS reader here for a feed of the latest messages in this thread


     

 
 

My developerWorks
 Welcome, Guest
Sign in or register
This question is not answered.

Permlink Replies: 1 - Pages: 1 - Last Post: Sep 17, 2009 9:10 AM Last Post By: bashboush Threads: [ Previous | Next ]
navneet

Posts: 19
Registered: Jun 28, 2007 10:46:07 AM
CqProvider caching old CqRecord data
Posted: Nov 12, 2007 01:45:11 AM
 
Click to report abuse...   Click to reply to this thread Reply
It appears that if a CqRecord object is read with Team API using doReadProperties, and if that record is then modified using cqWeb or another means, fetching that record again with the same CqProvider object that was used earlier, does not reflect the changes that were made between the two Team API calls. If I use a new CqProvider object, it does get the updates correctly, but with an added cost, as the first call with a new CqProvider object is significantly slower than subsequent calls.

So, Team API appears to be caching the old data, perhaps in the CqProvider object. I tried calling cqProvider.doClearContext() between calls, but that did not help. Is there a way to get Team API to check the repository so as to always get the latest data, without having to create a new CqProvider instance each time?
bashboush

Posts: 3
Registered: May 09, 2008 05:45:44 AM
Re: CqProvider caching old CqRecord data
Posted: Sep 17, 2009 09:10:19 AM   in response to: navneet in response to: navneet's post
 
Click to report abuse...   Click to reply to this thread Reply
Hi experts,
I am also having the same kind of problem.
I am wrting a migration programm, that duplicates a whole tre structure in Clearquest.
The program works fine until the first hook validation error occcurs.
From this point on the provider works with the sameCqRecord although I read with it other entities, and the programm can´t continue.

I also tried doClearContext(). But it didn´t help!

any idea?

Point your RSS reader here for a feed of the latest messages in all forums