Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Speedup database reads of rigs/frames with single SQL outer join query#3387

Merged
ahojnnes merged 7 commits into
maincolmap/colmap:mainfrom
user/jsch/database-read-rig-frame-speedupcolmap/colmap:user/jsch/database-read-rig-frame-speedupCopy head branch name to clipboard
Jun 10, 2025
Merged

Speedup database reads of rigs/frames with single SQL outer join query#3387
ahojnnes merged 7 commits into
maincolmap/colmap:mainfrom
user/jsch/database-read-rig-frame-speedupcolmap/colmap:user/jsch/database-read-rig-frame-speedupCopy head branch name to clipboard

Conversation

@ahojnnes

Copy link
Copy Markdown
Contributor

When writing the code, I got lazy and thought it would be fast enough to use separate queries per frame/rigs. This can be done with a single query by joining the rigs/rig_sensors and frames/frame_data tables.Supersedes #3386.

@paulinus paulinus left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM, just two minor potential issues that could break if SQL stops sorting rows or if the receiver of the moved objects modifies them.

Comment thread src/colmap/scene/database.cc
Comment thread src/colmap/scene/database.cc Outdated
Comment thread src/colmap/scene/database.cc
Comment thread src/colmap/scene/database.cc
@ahojnnes
ahojnnes enabled auto-merge (squash) June 10, 2025 14:31
@ahojnnes
ahojnnes merged commit ee15cfd into main Jun 10, 2025
14 checks passed
@ahojnnes
ahojnnes deleted the user/jsch/database-read-rig-frame-speedup branch June 10, 2025 14:32
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.