Skip to content

Commit a0c803d

Browse files
committed
fix: correct query result memory estimate
1 parent 02d7775 commit a0c803d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native-nitro-sqlite/cpp/hybridObjects/HybridNitroSQLiteQueryResult.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace {
1919
size_t getRowExternalMemorySize(const SQLiteQueryResultRow& row) {
2020
size_t bucketMemory = row.bucket_count() * sizeof(void*);
2121
constexpr size_t nodePadding = 24;
22-
size_t nodesMemory = row.size() * (sizeof(std::pair<std::string, SQLiteValue>) * nodePadding);
22+
size_t nodesMemory = row.size() * (sizeof(std::pair<std::string, SQLiteValue>) + nodePadding);
2323
return bucketMemory + nodesMemory;
2424
}
2525

0 commit comments

Comments
 (0)