Open
Description
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