yiguolei commented on code in PR #28913:
URL: https://github.com/apache/doris/pull/28913#discussion_r1435546767
##########
fe/fe-core/src/main/java/org/apache/doris/nereids/trees/plans/commands/InsertIntoTableCommand.java:
##########
@@ -102,6 +102,8 @@ public void setJobId(long jobId) {
@Override
public void run(ConnectContext ctx, StmtExecutor executor) throws
Exception {
+ // insert into setting to disable page cache
+ ctx.getSessionVariable().enablePageCache = false;
Review Comment:
If you modify the code like this. when the insert into select command
finished. and user want to execute select command, the page cache value is
false too. The performance maybe bad.
I think you could refer the code insert into xxx select /* SET_VAR=xxx*/
to know how to set the session variable at sql level not at session level.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]