You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ja...@apache.org on 2024/08/01 04:25:26 UTC
(iotdb) branch ty/MemoryControlForIndexScan created (now 80493f0e329)
This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a change to branch ty/MemoryControlForIndexScan
in repository https://gitbox.apache.org/repos/asf/iotdb.git
at 80493f0e329 Support memory control in index scan
This branch includes the following new commits:
new 80493f0e329 Support memory control in index scan
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(iotdb) 01/01: Support memory control in index scan
Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a commit to branch ty/MemoryControlForIndexScan
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 80493f0e329860b9789778f8a458b05b62b29e51
Author: JackieTien97 <ja...@gmail.com>
AuthorDate: Thu Aug 1 12:22:15 2024 +0800
Support memory control in index scan
---
.../plan/relational/metadata/fetcher/TableDeviceSchemaFetcher.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/fetcher/TableDeviceSchemaFetcher.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/fetcher/TableDeviceSchemaFetcher.java
index d146186b49d..202e83feeab 100644
--- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/fetcher/TableDeviceSchemaFetcher.java
+++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/fetcher/TableDeviceSchemaFetcher.java
@@ -382,11 +382,12 @@ public class TableDeviceSchemaFetcher {
constructNodsArrayAndAttributeMap(
attributeMap, nodes, 1, columnHeaderList, columns, tableInstance, i);
final IDeviceID deviceID = IDeviceID.Factory.DEFAULT_FACTORY.create(nodes);
- // TODO table metadata: add memory control in query
- deviceEntryList.add(
+ DeviceEntry deviceEntry =
new DeviceEntry(
deviceID,
- attributeColumns.stream().map(attributeMap::get).collect(Collectors.toList())));
+ attributeColumns.stream().map(attributeMap::get).collect(Collectors.toList()));
+ mppQueryContext.reserveMemoryForFrontEnd(deviceEntry.ramBytesUsed());
+ deviceEntryList.add(deviceEntry);
// Only cache those exact device query
// Fetch paths is null iff there are fuzzy queries related to id columns
if (Objects.nonNull(fetchPaths)) {