Улучшение производительности
This commit is contained in:
@@ -38,7 +38,7 @@ public class Pattern {
|
||||
|
||||
private PatternDirectionType directionType;
|
||||
|
||||
@ManyToMany(mappedBy = "foundPatterns", cascade = CascadeType.ALL, fetch = FetchType.LAZY)
|
||||
@ManyToMany(mappedBy = "foundPatterns", fetch = FetchType.LAZY)
|
||||
@JsonIgnore
|
||||
private List<Stream> matchedStreams;
|
||||
|
||||
|
||||
@@ -33,8 +33,7 @@ public class Stream {
|
||||
|
||||
private Protocol protocol;
|
||||
|
||||
@OneToMany(mappedBy = "stream", cascade = CascadeType.ALL, orphanRemoval = true)
|
||||
@OrderColumn
|
||||
@OneToMany(mappedBy = "stream", cascade = CascadeType.ALL)
|
||||
@JsonIgnore
|
||||
private List<Packet> packets;
|
||||
|
||||
@@ -42,13 +41,14 @@ public class Stream {
|
||||
|
||||
private long endTimestamp;
|
||||
|
||||
@ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
|
||||
@ManyToMany(cascade = CascadeType.ALL)
|
||||
private Set<Pattern> foundPatterns;
|
||||
|
||||
private boolean favorite;
|
||||
|
||||
private byte ttl;
|
||||
|
||||
@Column(columnDefinition = "char(3)")
|
||||
private String userAgentHash;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user