-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add possibility to invalidate cached indices with indexOnly constraint
Related #3155 #3263 #3264 Signed-off-by: Oleksandr Porunov <[email protected]>
- Loading branch information
Showing
4 changed files
with
130 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...graph-core/src/main/java/org/janusgraph/graphdb/database/util/IndexAppliesToFunction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright 2022 JanusGraph Authors | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package org.janusgraph.graphdb.database.util; | ||
|
||
import org.janusgraph.core.JanusGraphElement; | ||
import org.janusgraph.graphdb.types.IndexType; | ||
|
||
public interface IndexAppliesToFunction { | ||
boolean indexAppliesTo(IndexType index, JanusGraphElement element); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d039caa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
org.janusgraph.MgmtOlapJobBenchmark.runRemoveIndex
114.22135841363635
ms/op114.81006324545453
ms/op0.99
org.janusgraph.JanusGraphSpeedBenchmark.basicAddAndDelete
15722.298812213332
ms/op18229.721095707515
ms/op0.86
org.janusgraph.GraphCentricQueryBenchmark.getVertices
1837.8113988833788
ms/op1762.9599514380252
ms/op1.04
org.janusgraph.MgmtOlapJobBenchmark.runReindex
360.47294661142854
ms/op398.18975534765235
ms/op0.91
org.janusgraph.JanusGraphSpeedBenchmark.basicCount
348.51808591586774
ms/op246.39731932573187
ms/op1.41
org.janusgraph.CQLMultiQueryBenchmark.getNeighborNames
43238.0480482
ms/op51189.39528131666
ms/op0.84
org.janusgraph.CQLMultiQueryBenchmark.getNames
42788.28825745
ms/op50673.465681166665
ms/op0.84
This comment was automatically generated by workflow using github-action-benchmark.