How oceanbase/seekdb works
seekdb is a MySQL-compatible database for embedded and server use, with transactional SQL, hybrid vector/full-text/scalar search, and agent-oriented sandboxing. The main workflow is a client request through the MySQL interface and SQL execution into transactional storage, with log persistence; queries can combine vector and full-text retrieval. README-described asynchronous indexing and copy-on-write fork/merge are included as product capabilities, but their implementation files are not present in the supplied tree, so their placement and connections are documented rather than source-verified. The sampled source confirms SQL plan generation, memtable lookup, log I/O submission, and tablet metadata persistence.
Main entry points: ob_static_engine_cg.cpp SQL Engine · obmp_query.cpp MySQL Protocol · observer Async Index Pipeline · ob_ddl_pipeline.cpp DDL Pipeline
Components 15
Interfaces
- MySQL Protocol
src/observer/mysql/obmp_query.cpp - Database Runtime
src/observer/main.cpp
SQL and Search
- SQL Engine
src/sql/code_generator/ob_static_engine_cg.cpp - Vector Embeddings
src/query/vector/ob_vector_embedding_handler.cpp - Vector Runtime API
src/data_plane/api/data_plane/vector - Full-Text Search
src/data_plane/api/data_plane/fts - Sparse Retrieval
src/data_plane/api/data_plane/retrieval
Transactional Storage
- Memtable Query
src/storage/memtable/mvcc/ob_query_engine.cpp - Tablet Metadata
src/share/tablet/ob_tablet_meta_table_storage.cpp - DDL Pipeline
src/storage/ddl/ob_ddl_pipeline.cpp - Log Service
src/logservice/palf/log_engine.cpp - Log Storage
src/logservice/ob_i_log_storage.h
Agent and Operations
- Async Index Pipeline
src/observer - COW Sandboxes
src/storage
Other components
- SQL Client
Connections 14
- SQL Client → MySQL Protocol: sends SQL
README.md - MySQL Protocol → SQL Engine: executes query
- SQL Engine → Memtable Query: accesses rows
- SQL Engine → Vector Embeddings: requests embeddings
- SQL Engine → Vector Runtime API: runs vector search
README.md - SQL Engine → Full-Text Search: runs text search
README.md - SQL Engine → Sparse Retrieval: retrieves matches
- Async Index Pipeline → Log Service: consumes redo
README.md - Async Index Pipeline → Vector Runtime API: updates delta index
README.md - SQL Engine → DDL Pipeline: executes DDL
- DDL Pipeline → Tablet Metadata: persists metadata
- Log Service → Log Storage: writes log
- SQL Engine → COW Sandboxes: forks or merges
README.md - Database Runtime → MySQL Protocol: serves protocol