/** * If allocateSize is large load some sequences in a background thread. * <p> * For example, when inserting a bean with a cascade on a OneToMany with many * beans Ebean can call this to ensure . * </p> */ public void preAllocateIds(int allocateSize) { if (batchSize > 1 && allocateSize > batchSize) { // only bother if allocateSize is bigger than // the normal loading batchSize if (allocateSize > 100) { // max out at 100 for now allocateSize = 100; } loadLargeAllocation(allocateSize); } }
/** * If allocateSize is large load some sequences in a background thread. * <p> * For example, when inserting a bean with a cascade on a OneToMany with * many beans Ebean can call this to ensure . * </p> */ public void preAllocateIds(int allocateSize) { if (batchSize > 1 && allocateSize > batchSize){ // only bother if allocateSize is bigger than // the normal loading batchSize if (allocateSize > 100){ // max out at 100 for now allocateSize = 100; } loadLargeAllocation(allocateSize); } }
/** * If allocateSize is large load some sequences in a background thread. * <p> * For example, when inserting a bean with a cascade on a OneToMany with many * beans Ebean can call this to ensure . * </p> */ public void preAllocateIds(int allocateSize) { if (batchSize > 1 && allocateSize > batchSize) { // only bother if allocateSize is bigger than // the normal loading batchSize if (allocateSize > 100) { // max out at 100 for now allocateSize = 100; } loadLargeAllocation(allocateSize); } }