+
Skip to content

Reduce the number entity manager flushes when creating a realm #43362

@ahus1

Description

@ahus1

Description

When doing a performance test, I found multiple flushes when creating a realm.

Those flushes are only needed when they are followed by a clear or when they are removing the entity. In all other cases they are wasting resources.

They prevent batching of writes to the database, and spend extra CPU cycles inspecting the persistence context.

Discussion

No response

Motivation

Faster creation of realms and clients.

Details

I'll create a PR

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载