Circular loop data model (CLDM): a novel approach to simplifying data management for rapid prototyping
We introduce the Circular Loop Data Model (CLDM), a lightweight data model and domain-specific language (DSL) for embedded, offline-first applications and rapid prototyping. CLDM organises application state as named loops of parallel string-valued segments, persisted in a single BSON file with file-level locking for cross-process concurrency. The DSL exposes six core commands ( FORGE , SEGMENT , CRAFT , EXTRACT , COMBINE ) that map directly to common application workflows without requiring SQL or upfront schema definition. Here, lightweight refers to deployment and operational overhead: no server process, no schema migration, and single-file distribution. We evaluate CLDM across write, read, aggregation, file-size, and concurrency benchmarks on a commodity laptop. Key results: in-process embedding delivers a mean of 2.3 ms per CRAFT operation; CLI invocation costs approximately 214 ms per command due to Python interpreter startup; and CLDM reads 500,000 records in 0.183 s, competitive with manual BSON file parsing. The primary limitation is O(N 2 ) write complexity under the save-on-write policy: inserting 10,000 records sequentially requires 444 s, approximately \(38{,}000\times\) slower than SQLite with transactions. CLDM is therefore suited to low-volume local workloads and prototyping scenarios, not bulk-insert or high-frequency logging.
Authors
- Emir Husain (ORCID: https://orcid.org/0009-0003-2158-6629)
- Dev Patel
- Vedang Kore
- C. A. Rishikeshan
- R. Jayanthi
Institutions
- Vellore Institute of Technology University (IN)
Publication Details
- Journal
- Scientific Reports
- Published
- 2026-08-21
- DOI
- https://doi.org/10.1038/s41598-026-56925-4
- Primary Topic
- Model-Driven Software Engineering Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- Vellore Institute of Technology, Chennai