-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve tx-cache and index&ids query #105
Conversation
eb73b91
to
daa7eee
Compare
need rebase |
cc076b2
to
8d6d57f
Compare
private Collection<Id> intersectIndexQueries(IndexQueries queries) { | ||
Collection<Id> intersectIds = null; | ||
|
||
for (Map.Entry<IndexLabel, ConditionQuery> entry: queries.entrySet()) { |
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.
add a space between 'entry' and ':'
} | ||
if (vertices.isEmpty()) { |
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.
seems no need to set 'newQuery = query'
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.
yes both are ok
e2b03a6
to
c608611
Compare
// TODO: Use a more precise strategy to update the edge cache | ||
this.edgesCache.clear(); | ||
public void commit() throws BackendException { | ||
if (!this.edgesInTx().isEmpty()) { |
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.
add a method to judge 'this.addedEdges, this.removedEdges and this.updatedEdges' is empty
5cc2d6f
to
a6e932d
Compare
changes: * ensure return duplicate records when querying by ids * tx cache override queryVerticesFromBackend() method * remove CacheTx.rollback() and addXX()/removeXX() methods since won't cache uncommitted records queried from tx fix #160 Change-Id: Ib0116f2faf0d0da9ec40ea335c87950e1c6e7276
a6e932d
to
6d6fff3
Compare
* refact: clean code & typo & update the name of getTimeZone Typo: getTimeZome() -> getTimeZone() And we need check/update the class used it later * Update RestClient.java
Change-Id: Ib0116f2faf0d0da9ec40ea335c87950e1c6e7276