Bulk insertion error
T-Bug
### 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::vector<realm::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_
0 条评论