8000 Bulk insertion error · Issue #244 · realm/realm-cpp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Bulk insertion error #244
Open
Open
@aygunbinici

Description

@aygunbinici

What happened?

I am testing time in realm with local c++ and I want to record many records at once without a for loop but I could not succeed.

Repro steps

std::vectorrealm::Person people;

for (int i = 0; i < size; ++i) {
realm::Person person;
person._id = realm::object_id::generate();
person.name = "Person " + std::to_string(i + 1);
person.country = "Country " + std::to_string(i % 10);
people.push_back(std::move(person));
}

local_realm.write([&] {
local_realm.insert(people);
});

Version

main

Installation method

3.15

What Atlas Services are you using?

Local Database only

Compiler

Visual Studio 2022

OS and version

Windows 11 (Version 22H2)

Code snippets

No response

Stacktrace of the exception/crash you're getting

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0