Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Why is retrieving all states of all workitems in a project area slow (RTC v2.x) ?

Hi folks,

I need to retrieve all states of all workitems in a given project area from the client using the java API.  Currently this requirement is for a V2.x repo but I will shortly have to do the same thing for 3.x and 4.x.  My solution (cobbled together from various forum snippets.  Thank you forum) is to query for all the workitems in the project area and then do the following for each workItem:

List<IWorkItemHandle> workItemStateHandles = (List<IWorkItemHandle>) getItemManager()
                .fetchAllStateHandles(workItem, null);

Unfortunately, this seems to take an awfully long time -- on the order of 4 or 5 seconds per call with little or no network latency.  The server box is fast and there is nobody else using it.  It's a generic installation with all the default settings, except the database is db2 instead of derby.

With ~300,000 workitems to process, this isn't really a viable solution.  And it's difficult to understand what's taking so long since there are only about 10 states per workitem on average.

Is there some better way to do it?  Any thoughts?

Thanks,
Tim




0 votes


Be the first one to answer this question!

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938
× 411
× 369

Question asked: Jul 02 '12, 9:11 p.m.

Question was seen: 5,539 times

Last updated: Jul 03 '12, 10:37 a.m.

Confirmation Cancel Confirm