Skip to content

Add caching to data statistics to improve small query performance.#1349

Merged
rfecher merged 1 commit intolocationtech:masterfrom
jdgarrett:small-query-opt
Jun 29, 2018
Merged

Add caching to data statistics to improve small query performance.#1349
rfecher merged 1 commit intolocationtech:masterfrom
jdgarrett:small-query-opt

Conversation

@jdgarrett
Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Johnathan Garrett <jd@prominentedge.com>
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.2%) to 46.127% when pulling 081d405 on jdgarrett:small-query-opt into adf9059 on locationtech:master.

@coveralls
Copy link
Copy Markdown

coveralls commented Jun 21, 2018

Coverage Status

Coverage increased (+1.1%) to 47.406% when pulling 081d405 on jdgarrett:small-query-opt into adf9059 on locationtech:master.

final ByteArrayId primaryId,
final ByteArrayId secondaryId ) {
// the secondaryId is optional so check for null
StringBuilder sb = new StringBuilder(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

curious if there's a driver/motivation for this change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Earlier in the development of this patch I had made a change that appended all the authorizations to the combined key, making stringbuilder more efficient. But that was later scrapped and I didn’t fully revert the change.

Copy link
Copy Markdown
Contributor

@rfecher rfecher Jun 28, 2018

Choose a reason for hiding this comment

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

It may be ok, it just requires the IDs to be byte arrays that use a valid character set so they can go back and forth from string encoding without being lossy. Right now that should always be the case in practice, it just may be problematic if/when we start using short for internal representations of adapter ID

@rfecher rfecher merged commit 97581d1 into locationtech:master Jun 29, 2018
@jdgarrett jdgarrett deleted the small-query-opt branch October 6, 2018 22:43
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