JingsongLi commented on code in PR #1400:
URL: https://github.com/apache/incubator-paimon/pull/1400#discussion_r1240996251
##########
paimon-core/src/main/java/org/apache/paimon/operation/FileStoreWrite.java:
##########
@@ -98,6 +98,15 @@ public interface FileStoreWrite<T> {
List<CommitMessage> prepareCommit(boolean waitCompaction, long
commitIdentifier)
throws Exception;
+ /**
+ * We detect whether it is in batch mode, if so, we do some optimization.
+ *
+ * @param isBatch whether in batch mode
+ */
+ default void isStreamingMode(boolean isBatch) {
Review Comment:
And don't use default method in per record code path. (It has performance
issue)
--
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]