Hi,
I use a transient list to access array elements from an ArrayList which have been filtered by a status value. I am running some overnight tests and it seems everything runs fine in the beginning and the filtered list is returned in under 1 second. However, after several hours it starts taking about 5 seconds or longer to return the same transient list. I am not sure how to solve this issue and any help (or hints) would be greatly appreciated.
Regards,
Rick.
SAPDB 7.4.03.31 32 bit
Hibernate 3.1
public class Order {
private long id;
private List<OrderLine> lines = new ArrayList<OrderLine>();
@Id(generate = GeneratorType.AUTO)
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
@OneToMany(cascade = CascadeType.ALL)
@JoinColumn(name = "order_header_id")
@OrderBy("pickSequence, targetColorIndex")
public List<OrderLine> getLines() {
return lines;
}
public void setLines(List<OrderLine> lines) {
this.lines = lines;
}
@Transient
public List<OrderLine> getLinesInProgress() {
ArrayList<OrderLine> linesInProgress = new ArrayList<OrderLine>();
for (OrderLine line : getLines()) {
if (line.getStatus() != OrderLine.Status.AVAILABLE) {
linesInProgress.add(line);
}
}
return linesInProgress;
}
}
|