Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ebean generating too many queries #355

Open
sjaanus opened this issue Apr 21, 2023 · 0 comments
Open

Ebean generating too many queries #355

sjaanus opened this issue Apr 21, 2023 · 0 comments

Comments

@sjaanus
Copy link

sjaanus commented Apr 21, 2023

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);
	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant