Skip to content

Commit

Permalink
Just some todos.
Browse files Browse the repository at this point in the history
  • Loading branch information
rdaum committed Jan 7, 2024
1 parent 7de9a9b commit 0bfae23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/db/src/tuplebox/base_relation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ use crate::tuplebox::RelationId;
// modified to support CoW/shared ownership of the tree nodes, like the im::HashMap does.
// if we're going to support on-disk indexes, use a CoW B+Tree, which I have implemented elsewhere,
// but will need to bring in here, optimize, and provide loving care to.
// TODO: support bitmap indexes
#[derive(Clone)]
pub struct BaseRelation {
pub(crate) id: RelationId,
Expand Down
2 changes: 2 additions & 0 deletions crates/db/src/tuplebox/tuples/tuple_ptr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ use crate::tuplebox::tuples::{SlotBox, TupleId};
/// which allows the SlotBox to manage the lifetime of the tuple, swizzling it in and out of memory as needed.
/// Adds a layer of indirection to each tuple access, but is better than passing around tuple ids + slotbox
/// references.
// TODO: rather than decoding a tuple out of a buffer in the slot, the slot should just hold the tuple structure
pub struct TuplePtr {
sb: Arc<SlotBox>,
id: TupleId,
Expand Down

0 comments on commit 0bfae23

Please sign in to comment.