Skip to content

Exit early in copy_attribute_values when empty res - #1984

Merged
Shelnutt2 merged 1 commit into
devfrom
ss/copy_attribute_values-exit-early-when-no-results
Dec 30, 2020
Merged

Shelnutt2 merged 1 commit into
devfrom
ss/copy_attribute_values-exit-early-when-no-results

Conversation

@Shelnutt2

Copy link
Copy Markdown
Contributor

In Reader::copy_attribute_values we do not exit early when there is no results, so we end up calling Reader::load_tile_offsets et al unnecessarily. This change can improve performance of the no-results case and avoid unnecessary VFS reads.

Comment thread tiledb/sm/query/reader.cc Outdated
@Shelnutt2
Shelnutt2 force-pushed the ss/copy_attribute_values-exit-early-when-no-results branch from 9d3b82e to 9a2f80c Compare December 30, 2020 01:47
@Shelnutt2
Shelnutt2 force-pushed the ss/copy_attribute_values-exit-early-when-no-results branch from 9a2f80c to a10a68e Compare December 30, 2020 13:04
@Shelnutt2
Shelnutt2 requested a review from joe-maley December 30, 2020 13:04
In copy_coordinates/copy_attribute_values we do not exit early when there is no results,
so we end up calling load_tile_offsets et al unnecessarily. This changes
adds a check to exit early on empty result_cell_slabs or result_tiles.
@Shelnutt2
Shelnutt2 force-pushed the ss/copy_attribute_values-exit-early-when-no-results branch from a10a68e to 165b692 Compare December 30, 2020 14:21
@Shelnutt2
Shelnutt2 merged commit 72390d6 into dev Dec 30, 2020
@Shelnutt2
Shelnutt2 deleted the ss/copy_attribute_values-exit-early-when-no-results branch December 30, 2020 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants