Skip to content

align semantics of insertAll() and friends with insertMultiple() and friends in ORM #2042

@gavinking

Description

@gavinking

As of H6, ORM has operations like insertMultiple() accepting List<?> which implicitly set the batch size to the size of the given list. Reactive has very similar insertAll() operations, but they do not set the batch size, though you can accomplish the same thing by calling reactiveInsertAll(array.length, array).

I think the behavior in ORM is more convenient.

On a similar note: after much consideration, I decided that the operations in ORM should accept List instead of varargs, and that Multiple was less ambiguous than All. I'm wondering if it's worth adding insertMultiple(List) and friends to the reactive API (we don't need to drop or rename the older operations).

Metadata

Metadata

Assignees

No one assigned

    Labels

    designA design or implementation issueenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions