-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Transient list access becomes slow over time
PostPosted: Fri May 12, 2006 4:17 pm 
Newbie

Joined: Thu Mar 23, 2006 5:35 am
Posts: 8
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;
}

}


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.