The fastest way to get find work items?
Hi,
I Would like to ask about the fastest way to get work items from project area.
I have implemented solution with:
but this solution is too slow for me.
Is there any other (faster) solution ?
I think about execute stored query, but i don't know how to set a parameter.
For instance: (1)get stored query ,(2) set owner,(3)execute exuery
Arek
I Would like to ask about the fastest way to get work items from project area.
I have implemented solution with:
Term termAnd = new Term(Operator.AND);
termAnd.add(projectAreaExpression);
termAnd.add(customAttributeExpression);
....
IQueryResult<IResolvedResult<IWorkItem>> results = null;
results = qClient.getResolvedExpressionResults(
this.currentProjectArea, termAnd, IWorkItem.SMALL_PROFILE);
but this solution is too slow for me.
Is there any other (faster) solution ?
I think about execute stored query, but i don't know how to set a parameter.
For instance: (1)get stored query ,(2) set owner,(3)execute exuery
Arek
One answer
I'd try applying some better filters to the query... it should be relatively fast when you're not searching for all workitems within a project area for a custom attribute (which probably isn't indexed).
Hi,
I Would like to ask about the fastest way to get work items from project area.
I have implemented solution with:
Term termAnd = new Term(Operator.AND);
termAnd.add(projectAreaExpression);
termAnd.add(customAttributeExpression);
....
IQueryResult<IResolvedResult<IWorkItem>> results = null;
results = qClient.getResolvedExpressionResults(
this.currentProjectArea, termAnd, IWorkItem.SMALL_PROFILE);
but this solution is too slow for me.
Is there any other (faster) solution ?
I think about execute stored query, but i don't know how to set a parameter.
For instance: (1)get stored query ,(2) set owner,(3)execute exuery
Arek