You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "thomasmueller (via GitHub)" <gi...@apache.org> on 2023/10/19 08:06:15 UTC
Re: [PR] OAK-10497 Properties order in FFS can be different across runs: option to sort [jackrabbit-oak]
thomasmueller commented on code in PR #1159:
URL: https://github.com/apache/jackrabbit-oak/pull/1159#discussion_r1362056063
##########
oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/NodeStateEntryWriter.java:
##########
@@ -86,10 +86,6 @@ public String toString(List<String> pathElements, String nodeStateAsJson) {
}
public String asJson(NodeState nodeState) {
Review Comment:
> this is breaking the public contract
"not sorting" is not the public contract... The public contract is just that this is a JSON.
> this will affect its performance characteristics
According to the benchmark, it doesn't have a big impact: ~0.1 second for 100 MB
##########
oak-run-commons/src/main/java/org/apache/jackrabbit/oak/index/indexer/document/flatfile/NodeStateEntryWriter.java:
##########
@@ -86,10 +86,6 @@ public String toString(List<String> pathElements, String nodeStateAsJson) {
}
public String asJson(NodeState nodeState) {
Review Comment:
Now, it doesn't sort by default.
--
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: dev-unsubscribe@jackrabbit.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org