haohao0103 commented on code in PR #2620:
URL:
https://github.com/apache/incubator-hugegraph/pull/2620#discussion_r1721162754
##########
hugegraph-server/hugegraph-core/src/main/java/org/apache/hugegraph/backend/cache/CachedGraphTransaction.java:
##########
@@ -133,7 +133,7 @@ private void listenChanges() {
}
return false;
};
- this.store().provider().listen(this.storeEventListener);
+ this.store().provider().listenDataCacheClear(this.storeEventListener);
Review Comment:
simply put,i found that registering a listener for each transaction instance
is redundant because each transaction receives events and then performs a clear
operation on the schema/vertex/edge cache , i think that this is redundant.
--
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]