Улучшение производительности

This commit is contained in:
serega6531
2020-03-13 00:40:52 +03:00
parent a112d55496
commit 8d327608ba
9 changed files with 23 additions and 69 deletions

View File

@@ -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;
}