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

Indexing of messages.timestamp to avoid runtime-copy. #121

Conversation

Felix-El
Copy link
Contributor

Extended SqliteStorage::initialize() to add an index for the message table's timestamp column.
Without this, the ORDER BY query in SqliteStorage::prepare_for_reading() causes expensive table duplication, which also has potential for out-of-memory errors.

Extended SqliteStorage::initialize() to add an index for the message table's timestamp column.
Without this, the ORDER BY query in prepare_for_reading() causes expensive table duplication,
which also has potential for out-of-disk or out-of-memory errors.
@Karsten1987
Copy link
Collaborator

Karsten1987 commented May 20, 2019

Thanks for the patch. Sounds extremely helpful.

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

As a note: We require a DCO authentication for ROS2 repos. Do you mind signing your commit? It's sufficient to put signed-off-by: <your@email> in the commit messages. See also the details of the DCO bot:
https://github.com/ros2/rosbag2/pull/121/checks?check_run_id=132690669

Copy link
Collaborator

@Karsten1987 Karsten1987 left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks again for the patch.
I am happy to merge once the DCO is addressed.

@Karsten1987
Copy link
Collaborator

I'll go ahead and merge this wo/ DCO because I would like to have this in the pre-release for dashing.
Please, in the future, make sure to sign your commits.

@Karsten1987 Karsten1987 merged commit c9a183c into ros2:master May 21, 2019
@Felix-El Felix-El deleted the SqliteStorage-Add-Index-For-Message-Timestamp branch May 21, 2019 08:21
@Felix-El
Copy link
Contributor Author

Thanks for the quick merge. Thumbs up!

ruffsl added a commit to dledr/bbr_ros2 that referenced this pull request Jul 10, 2019
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.

2 participants