Skip to content

Commit

Permalink
enable pagination in dataframe view
Browse files Browse the repository at this point in the history
  • Loading branch information
teh-cmc committed Oct 10, 2024
1 parent a5bbc4e commit ac1bf1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/viewer/re_space_view_dataframe/src/dataframe_ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ impl<'a> egui_table::TableDelegate for DataframeTableDelegate<'a> {

let timeline = self.query_handle.query().filtered_index;

//TODO(ab, cmc): we probably need a better way to run a paginated query.
self.query_handle
.seek_to_row(info.visible_rows.start as usize);
let data = std::iter::from_fn(|| self.query_handle.next_row())
.skip(info.visible_rows.start as usize)
.take((info.visible_rows.end - info.visible_rows.start) as usize)
.collect();

Expand Down

0 comments on commit ac1bf1a

Please sign in to comment.