Skip to content

Key values#1038

Merged
ellie merged 12 commits intomainfrom
ellie/kv
Jun 14, 2023
Merged

Key values#1038
ellie merged 12 commits intomainfrom
ellie/kv

Conversation

@ellie
Copy link
Copy Markdown
Member

@ellie ellie commented Jun 8, 2023

Super basic PoC, that adds a few things

  1. Introduce the concept of a records, and a record store

This stores a linked list of... data. Actually just anything! This data could be shell history, but for now is simple key-values. The idea here is to store it locally in a format that works much better for effective syncing. Note that we store it per host. This is intentional, as when sync works the idea is that machines will write their own local data, but read from all

  1. Introduce key value store

This is both a cool feature that we wanted, but also a demo of the sync. Rather than mess with history sync from day 0, we can do it with something lower stakes.

This is not final. I still need to implement sync, and I still need to "build" the history records into an actual kv store. The idea of a record store is not that live queries will run on it, but that it will act as a source of truth

@vercel
Copy link
Copy Markdown

vercel bot commented Jun 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
atuin ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 13, 2023 6:54pm

Comment thread atuin-common/src/record.rs Outdated
async fn push(&self, record: Record) -> Result<Record>;
// Push a record
async fn push(&self, record: &Record) -> Result<()> {
self.push_batch(std::iter::once(record)).await
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@ellie ellie merged commit ae1709d into main Jun 14, 2023
@ellie ellie deleted the ellie/kv branch June 14, 2023 20:18
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