Skip to content
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

Merged
merged 1 commit into from
Nov 19, 2018
Merged

Conversation

javeme
Copy link
Contributor

@javeme javeme commented Oct 11, 2018

  • ensure return duplicate records when querying by ids
  • tx cache override queryVerticesFromBackend() method

Change-Id: Ib0116f2faf0d0da9ec40ea335c87950e1c6e7276

@javeme javeme force-pushed the tx-cache-improve-rebase branch from eb73b91 to daa7eee Compare October 11, 2018 13:37
@Linary
Copy link
Contributor

Linary commented Oct 16, 2018

need rebase

@javeme javeme force-pushed the tx-cache-improve-rebase branch 2 times, most recently from cc076b2 to 8d6d57f Compare October 31, 2018 10:03
private Collection<Id> intersectIndexQueries(IndexQueries queries) {
Collection<Id> intersectIds = null;

for (Map.Entry<IndexLabel, ConditionQuery> entry: queries.entrySet()) {
Copy link
Contributor

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()) {
Copy link
Contributor

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'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes both are ok

@javeme javeme force-pushed the tx-cache-improve-rebase branch 3 times, most recently from e2b03a6 to c608611 Compare November 5, 2018 09:22
// TODO: Use a more precise strategy to update the edge cache
this.edgesCache.clear();
public void commit() throws BackendException {
if (!this.edgesInTx().isEmpty()) {
Copy link
Contributor

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

@javeme javeme force-pushed the tx-cache-improve-rebase branch 2 times, most recently from 5cc2d6f to a6e932d Compare November 16, 2018 08:47
@javeme javeme changed the title improve index query and ids query improve tx-cache and index&ids query Nov 16, 2018
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
@javeme javeme force-pushed the tx-cache-improve-rebase branch from a6e932d to 6d6fff3 Compare November 19, 2018 03:23
@zhoney zhoney merged commit 1cd88de into master Nov 19, 2018
@javeme javeme deleted the tx-cache-improve-rebase branch November 23, 2018 09:11
VGalaxies pushed a commit that referenced this pull request Aug 3, 2024
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants