Ive noticed some strange behaviour when executing basic SELECT * FROM program
query:
Im using GenerationType.IDENTITY
and inserting whole list of program objects at once.I could add ORDER BY db_id
to my query but im interested why this behaviour occured.It was fine till today.
Also tried with GenerationType.AUTO
but nothing changed...
My model:
@Entity
@Table(name = "program", indexes = { @Index(name = "channelindex", columnList = "channel", unique = false) })
public class OutputProgram {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Integer db_id;
private String category;
private String title;
....
There are some 8k programs being inserted each time...