# ArcadeDB in Python: An In-Process Multi-Model Database

ArcadeDB runs documents, graphs and vectors inside one Python process

Taewoon Kim · arXiv · 2026-11-5

- **Problem** Python apps usually split documents, graphs and vector search across separate stores that must be kept consistent by hand. Each store keeps its own copy, so every write has to reach them all.
- **Method** arcadedb-embedded runs the ArcadeDB engine inside the Python process through JPype. Unlike a separate server, data moves between the runtimes without a network hop, and the bundled Java runtime means no Java install.
- **Results** The paper benchmarks arcadedb-embedded against SQLite, DuckDB, LadybugDB and Chroma and reports its costs. A hybrid vector, SQL and graph query runs over one dataset in a single process.

## Why one question needs three stores

Take a question-answering system over a Q&A site. Posts are documents, who answered what forms a graph, and passages are found by similarity over embeddings. In Python the usual answer is a stack of separate tools: SQLite or DuckDB for documents, a graph library or LadybugDB for the graph, and FAISS, hnswlib or Chroma for vectors. This is a reasonable default, but each store keeps its own copy under its own consistency rules, so one write has to reach every store.

A query that spans models also passes identifiers from one library to the next, and reproducing an experiment means pinning several packages. So the cost sits in duplicated data and glue code rather than in any one query.

## One engine inside the Python process

The key idea is to keep the Java engine inside the Python process instead of placing a server between them. The binding starts a JVM inside the Python process through JPype, and the engine's Java objects are wrapped in a Pythonic layer. Because both runtimes share one address space, data moves between them without a network hop or a serialization step between processes.

Figure 1 shows the single process, the one file-backed database and the db object that fronts all three models.

![Figure 1: The arcadedb-embedded architecture. A single Python process hosts a JVM (via JPype) running the ArcadeDB engine over one local, file-backed database…](https://refivu.com/papers/92f8f688-68d7-459c-921a-5a8a63f299fb/figures/figure-76d3caffde3bafbf3e5a1442a14a9aed.png?thumb=512)

**Figure 1** . The arcadedb-embedded architecture. A single Python process hosts a JVM (via JPype) running the ArcadeDB engine over one local, file-backed database. The Python API exposes documents/SQL, a property graph (OpenCypher), and vector search through one db object, with NumPy/pandas interop. The wheel bundles a per-platform JRE, so installation is a plain pip install and the user never installs Java.

[Original paper](https://arxiv.org/abs/2611.07971v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Taewoon Kim · ArcadeDB in Python: An In-Process Multi-Model Database · Original paper figure · Extracted the figure area from page 4 of the original PDF.

Users don't install Java, because each wheel carries a JRE trimmed with jlink to the modules the engine needs. The engine's jar files are the same on every platform, so only the bundled runtime differs from one platform to another. The build yields twenty wheels for Linux x86-64, Linux ARM64, macOS Apple Silicon and Windows x86-64, across Python 3.10 to 3.14.

The same db object queries documents with SQL, the property graph with OpenCypher, and vectors through vectorNeighbors(). That shared scope is what lets the hybrid workflow hand results from one model to the next without leaving the process.

Embeddings go in as float32 NumPy arrays through to\_java\_float\_array(), which avoids an element-by-element copy on the Python side. Results come out as lists, pandas DataFrames, NumPy column dictionaries or pyarrow Tables, and each result set can be read only once. The choice matters for nullable integers: to\_columns() turns them into float64 with NaN, which loses precision above 253, while to\_arrow() keeps int64.

## Loading the corpus and building the vector index

The loader reads only the columns a type needs into Python, so the post body stays in the Parquet file. For the Post type, the loader keeps id, score and title and calls insert\_many() with commit\_every set to 10\_000.

Vertex and edge types are declared with SQL, because the typed float-array property and the vector index need SQL. The Question, Answer and Userx vertex types and the HAS\_ANSWER and AUTHORED\_BY edge types are then declared, and the Question type gets an ARRAY\_OF\_FLOATS embedding property.

The vector index is an LSM\_VECTOR index on Question embedding, with dimensions set to 384 and similarity set to COSINE. maxConnections is set to 32 and beamWidth to 100, so the index matches the hnswlib degree used in the comparison. The index is a JVector graph built from Vamana graphs in a multi-layer hierarchy comparable to HNSW. Search runs through the vectorNeighbors() SQL function, which takes the index name, a query vector, k and ef\_search.

## A vector, SQL and graph query in one process

The hybrid workflow narrows candidates in three stages, and each stage hands its ids to the next. A seed question's embedding drives a vector search that passes 200 candidates to the SQL filter. The SQL filter keeps the well-scored candidates and passes 50 questions to the graph traversal. The traversal returns the top 10 answers with the reputation of the users who wrote them.

All three steps run against one database, so identifiers pass directly between steps without leaving the process.

![Figure 2: The hybrid retrieval workflow. A seed question’s embedding drives a vector search, the resulting ids flow into a SQL filter , and the surviving ids…](https://refivu.com/papers/92f8f688-68d7-459c-921a-5a8a63f299fb/figures/figure-711826ea78ce17fd60f0d40ba4854aee.png?thumb=512)

**Figure 2** . The hybrid retrieval workflow. A seed question’s embedding drives a vector search, the resulting ids flow into a SQL filter , and the surviving ids flow into a graph traversal that reaches answers and their authors. All three steps run against one database, with identifiers passing directly between steps.

[Original paper](https://arxiv.org/abs/2611.07971v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

The first step calls vectorNeighbors() on the Question\[embedding\] index and takes the returned id and score fields. The second step converts those ids to Python integers and filters with WHERE id IN :ids and score \>= 1. The third step is an OpenCypher MATCH over Question, Answer and Userx, bound to the list of surviving ids through $fids.

The Cypher step runs over a GAV, because the authors treat the traversal as analytical. The authors keep the vector search and the SQL filter apart so each stage can be timed separately. A single statement could instead put the filter inside the vector search, since vectorNeighbors() returns whole documents.

The benchmarks below load the whole corpus, so the workflow uses a subset of it. The vector search takes 5.9 ms, the SQL filter 5.0 ms, and the Cypher traversal 2.0 ms. The vector search and the SQL filter therefore account for most of the cost, while the traversal is the cheapest stage.

Each measurement runs in its own Docker container, and the median over 5 repetitions is reported with its min to max range. Every table uses the same protocol, so the workflow numbers can be read against the specialist results.

## Documents against SQLite and DuckDB

Each backend runs in its own Docker container, with the same CPU cores and memory cap as every other backend. The authors repeat each measurement five times and report the median with its min–max range.

At that setting SQLite reached 87,150 ops/s, against 6,416 ops/s for ArcadeDB. DuckDB managed 219 ops/s, because it syncs on every commit. When SQLite and ArcadeDB were forced to sync on every commit, they fell to 262 and 187 ops/s. The authors say the two engines meet at the disk's limit when both sync. The authors tie transactional throughput mostly to how often each engine syncs to disk.

On the analytical suite, DuckDB answered in 9.3 ms, against 1,406.6 ms for ArcadeDB. SQLite took 292.8 ms on the same suite. The suite is five GROUP BY, aggregate and top-N queries over the posts table, and each query averages seven runs. The suite runs on NOTUNIQUE indexes that the authors built on post\_type, owner\_user\_id and score, timed apart from queries.

ArcadeDB peaked at 803 MiB of memory, against 299 MiB for SQLite and 301 MiB for DuckDB. The authors attribute that cost to running a JVM, with the engine's heap and page cache inside it. The JVM heap is capped at 16 GiB, because the default 4 GiB doesn't complete the vector build.

## Graph OLTP and analytics with a GAV

On graph OLTP, ArcadeDB reached 3,212 ops/s under relaxed durability, against 525 ops/s for LadybugDB. With ArcadeDB also forced to sync on every commit, it reached 595 ops/s against LadybugDB's 525. The OLTP reads don't depend on that setting, so ArcadeDB stays ahead at the median and at p99 for them. Table 5 shows the read gap in detail: the median graph hop took 0.21 ms for ArcadeDB and 1.44 ms for LadybugDB.

The graph OLAP suite runs four traversal-and-aggregation queries, and each query's time is the average of seven runs. LadybugDB finished the suite in 65.7 ms, while ArcadeDB took 839.6 ms with the GAV. The GAV is what brings ArcadeDB down from 2,023 ms without it to 839.6 ms. The GAV build took 1.49 s and is reported apart from query time.

LadybugDB stays about 13 times faster on this suite, so the graph specialist keeps the analytical lead.

The ArcadeDB graph occupies 1,840.8 MiB on disk, against 41.4 MiB for LadybugDB. Its peak memory reached 11,037 MiB, against 684 MiB for LadybugDB. Ingest took 26.67 s for ArcadeDB and 0.63 s for LadybugDB, which loads its graph with COPY. On this corpus, the graph is where the unified design costs the most in space.

## Vector recall and build cost at matched degree

The JVector-based index reached a recall@10 of 0.980 for ArcadeDB, against 0.972 for Chroma. Both engines used ef\_construction 100 and ef\_search 100, and recall was measured against an exact ground truth. The recall gap is small, so recall alone doesn't separate the two engines here. The recall ranges don't overlap, with ArcadeDB between 0.978 and 0.981 and Chroma between 0.970 and 0.972.

Build is where ArcadeDB pays, at 546.1 s for insert plus index, against 319.1 s for Chroma. Chroma builds its index in about 60% of the time that ArcadeDB needs. ArcadeDB's heap had to go up to 16 GiB, since the 4 GiB default failed to finish indexing. Query latency was 4.15 ms for ArcadeDB, compared to 1.17 ms for Chroma. Chroma answers queries about 3.5 times faster, and both stay in single-digit milliseconds.

ArcadeDB's peak memory was 21,650 MiB, compared to 25,212 MiB for Chroma, which is 14% lower. The authors tie that to ArcadeDB keeping its vectors on disk, while Chroma's index holds them all in RAM. On disk, ArcadeDB's database took 2,856 MiB, against 2,208 MiB for Chroma. Starting the JVM and opening the database take about 0.3 s, less than Chroma's Python import alone at 0.37 s.

## How results cross into Python

Result transport matters once a result set grows, because the engine's work is identical for all four export methods. At 100,000 rows, iter\_dicts() took 1,978.27 ms, compared to 109.03 ms for to\_arrow(). That is 18 times slower, and the whole difference sits on the Python side.

to\_arrow() was the fastest method at every size tested in Table 6. At 100,000 rows it ran about 20% faster than to\_columns(), which took 135.51 ms. The authors attribute the gap to the string column, because the NumPy path decodes each string into a separate Python str. They didn't test a purely numeric result, which they expect would narrow the gap.

The Python layer adds a small overhead on top of the engine. That overhead only becomes visible on large results, which is why the export method matters more there.

## Latency tails, overhead and scope

ArcadeDB's worst single operation is far slower than the specialists' worst operations in the same tables. Its worst document read took 34.9 ms, its worst graph hop 90.3 ms, and its worst vector query 145.9 ms. The specialists' worst single operations fall between 0.05 and 11 ms. On median and p99 latency, ArcadeDB beats DuckDB and LadybugDB but trails SQLite and Chroma.

For a document read, ArcadeDB's median was 0.06 ms, while DuckDB's median was 0.92 ms. The authors say the rare slow request matters only when every request has a strict deadline.

Python adds about 10% to the latency of a vector search, compared with a pure Java program on the same engine. The authors measured this overhead for one vector search only, so other query types aren't covered. Starting the JVM and opening the database take about 0.3 s, and this cost is paid once per process. That startup time is less than the 0.37 s that Chroma's Python import alone takes.

Capping the JVM heap at 16 GiB was needed, since the default 4 GiB heap couldn't finish the vector build.

Every number comes from one host, with each container pinned to eight cores and one public corpus. All ArcadeDB results use release 26.8.1, so the numbers describe that single release. The authors expect later releases to improve on these numbers, but they didn't test them. A GAV is usable only after its status reads READY, so analytics must wait for the build to finish.

Each measurement runs in fresh containers five times, and the paper reports the median of those runs.

## When one engine is the right choice

Such an application keeps one process, one set of identifiers and one transaction scope, instead of copying data between separate stores. The hybrid retrieval workflow is the typical case, where a similarity search, document filters and a graph traversal run in one query. Its three steps took a median of 12.9 ms over 20 warm repetitions, split into 5.9 ms, 5.0 ms and 2.0 ms.

DuckDB finished the analytical SQL suite in 9.3 ms, while ArcadeDB needed 1,406.6 ms. LadybugDB is faster by about an order of magnitude on graph analytics. SQLite is the better choice for point reads and writes of documents, and Chroma for building and querying a vector index. Even so, ArcadeDB beats LadybugDB on transactional graph work and DuckDB on point reads.

Covering all three models carries a price in memory and loading time. The graph build peaked at 11,037 MiB of memory, against 684 MiB for LadybugDB. Document ingest took 17.52 s for ArcadeDB, against 0.33 s for SQLite.

Teams with a workload confined to one model should pick the specialist, because it is the natural choice there. On vectors, the engine matches Chroma's recall while using less memory, and both ArcadeDB and arcadedb-embedded release monthly.

## Paper info

- **Authors**: Taewoon Kim
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-5
- **Added**: 2026-11-6
- **Updated**: 2026-11-5
- **Version**: v1
- **arXiv**: 2611.07971
- **DOI**: 10.25080/fwvt2525
- **Category**: cs.DB · cs.IR
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.07971v1) · [PDF ↗](https://arxiv.org/pdf/2611.07971v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Some Python workflows need transactional reads and writes over documents, traversals over a graph, and similarity search over vector embeddings. In practice these are split across separate systems (a document store, a graph engine, and a vector index), and the data is copied between them and kept consistent by application code. ArcadeDB is an open-source multi-model database engine, written in Java, that supports all three access patterns and can be embedded in a host process. We present arcadedb-embedded, a Python package that runs ArcadeDB inside the Python process via JPype, using a Java Runtime Environment bundled in the wheel. One pip install gives a database with documents, a property graph, and vector search, and needs no Java installation. Query results can be returned as Python lists, NumPy arrays, pandas DataFrames, or Arrow tables. We demonstrate a hybrid retrieval workflow that chains vector search, SQL filtering, and graph traversal over one dataset. We benchmark arcadedb-embedded against SQLite, DuckDB, LadybugDB, and Chroma, and report its costs.

## Quote from the paper

Taewoon Kim (2026). ArcadeDB in Python: An In-Process Multi-Model Database. arXiv:2611.07971v1. https://doi.org/10.25080/fwvt2525

**BibTeX**

```
@article{kim2026arcadedb,
  title = {{ArcadeDB in Python: An In-Process Multi-Model Database}},
  author = {Taewoon Kim},
  year = {2026},
  eprint = {2611.07971},
  archivePrefix = {arXiv},
  doi = {10.25080/fwvt2525},
  url = {https://arxiv.org/abs/2611.07971v1}
}
```

## Other paper commentary

- [Unsupervised Dense Information Retrieval with Contrastive Learning](https://refivu.com/en/papers/2fbce187-1a33-4d74-941c-36d004c9a79b-unsupervised-dense-information-retrieval-with-contrastive.md)
- [Dense Passage Retrieval for Open-Domain Question Answering](https://refivu.com/en/papers/c44c51e1-e59a-4cb6-8e94-20a4b572abc0-dense-passage-retrieval-for-open-domain-question-answering.md)
- [Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks](https://refivu.com/en/papers/569bb9ab-8345-4766-a539-e7ffb7b1754e-retrieval-augmented-generation-for-knowledge-intensive-nlp.md)
- [EchoSpec: Training Search Agents to Weigh Evidence Above Echoes](https://refivu.com/en/papers/22f39cf0-d41a-4695-8d6b-0d26df622012-echospec-training-search-agents-to-weigh-evidence-above.md)
- [UniGraph: A Unified Graph-based Index for Dynamic Hybrid Dense-Sparse Vector Retrieval](https://refivu.com/en/papers/a5ee1bb8-7883-49ee-91f4-322d407f8039-unigraph-a-unified-graph-based-index-for-dynamic.md)
- [Straight to the Product: What Online Retailers Miss When Shoppers Ask AI First](https://refivu.com/en/papers/89908e34-b722-4ae9-a8e6-f5fc8adefc2d-straight-to-the-product-what-online-retailers-miss.md)
- [Joint Modeling of Conditional Mean and Variability in Multilevel Functional Data: Application to Postprandial Glucose Trajectories in the AEGIS Study](https://refivu.com/en/papers/355af598-22e7-46fb-8d5a-1b92412a7b12-joint-modeling-of-conditional-mean-and-variability-in.md)
- [Which Signals of Code Correctness Survive Distribution Shift? Hidden-State and Causal Predictors of Program and Verdict Correctness](https://refivu.com/en/papers/0cbbef5d-6f26-4244-9958-7dc3b8200eac-which-signals-of-code-correctness-survive-distribution-shift.md)
- [The Blindfolded Controller: Decision Model-Guided Training for Reinforcement Learning](https://refivu.com/en/papers/8b0c1912-26f5-471f-b40d-89a647fb35f7-the-blindfolded-controller-decision-model-guided-training.md)
- [MUSS: A Multi-scale and Sequence-based Model for Single-cell Gene Regulation](https://refivu.com/en/papers/0901b972-c0e8-47ef-82a0-78af4cea5cd9-muss-a-multi-scale-and-sequence-based-model.md)
- [Same Answer, Different Future: Matched Predictions Do Not Imply Matched Belief Updating in Language Models](https://refivu.com/en/papers/1c4e0b5a-5dfa-492f-8851-faab3ac5be5e-same-answer-different-future-matched-predictions-do-not.md)
- [Identifying Neural Dynamics Using Nonlinear Interventional State Space Models](https://refivu.com/en/papers/6d8b1ab9-5598-4aa3-a01e-80f79a7452f0-identifying-neural-dynamics-using-nonlinear-interventional.md)

## Terms in this paper

- [HNSW](https://refivu.com/en/terms/d22a60488835-hnsw)
- [all-MiniLM-L6-v2](https://refivu.com/en/terms/c1e46ed7d7e4-all-minilm-l6-v2)
- [Recall@10](https://refivu.com/en/terms/c6b52eb76739-recall-10)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/92f8f688-68d7-459c-921a-5a8a63f299fb-arcadedb-in-python-an-in-process-multi-model)
