Skip to content

Ebean generating too many queries #355

@sjaanus

Description

@sjaanus

Using Play 2.7 and Ebean plugin version 5.0.2.

Ebean is generating me 10s of transactions ending like this.

....
where t0.id = any(Array[10]={230430,230431,230432,230433,230434,230435,230436,230437,230438,230439});
where t0.id = any(Array[10]={230440,230441,230442,230443,230444,230445,230446,230447,230448,230449});
where t0.id = any(Array[10]={230450,230451,230452,230453,230454,230455,230456,230457,230458,230459});
where t0.id = any(Array[10]={230460,230461,230462,230463,230464,230465,230466,230467,230468,230469});
where t0.id = any(Array[10]={230470,230471,230472,230473,230474,230475,230476,230477,230478,230479});
...

I have set up configuration like following, but still batch size 10 items as one transaction. Do I need to configure something else?

public class EbeanStartupConfig implements ServerConfigStartup {
	public void onStart(ServerConfig serverConfig) {
		serverConfig.setQueryBatchSize(100);
		serverConfig.setLazyLoadBatchSize(100);
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions