Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

'upsert' syntax and real 'batch' syntax support #2129

Open
Labels
@arenick001

Description

Now when I want to insert multiple records at once, I must use the saveAll method. And the saveAll method uses the save method↓

// in class `SimpleR2dbcRepository`
public <S extends T> Mono<S> save(S objectToSave) {
	Assert.notNull(objectToSave, "Object to save must not be null");
	if (this.entity.isNew(objectToSave)) {
		return this.entityOperations.insert(objectToSave);
	}
	return this.entityOperations.update(objectToSave);
}

it wiil check if each record is new.
I'd like to know if there is any support for 'upsert' syntax or real batch insert syntax (insert into ... values ​​(...), (...);)
Thanks in advance :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /