mongodb/mongo ? reverse-engineered prompt
Reverse engineered prompt
I want to build a high-performance, open-source NoSQL database from scratch, something conceptually similar to MongoDB. The core database server should be written in C++ for maximum speed and efficiency.
The database needs to store data in a flexible, document-based format, like JSON, instead of using traditional SQL tables. I'll also need a separate command-line shell that lets me connect to the running database server to run queries and manage data directly.
From an architectural standpoint, it's important that it's designed to scale out. Please include a sharding router so it can distribute data across multiple servers for large-scale applications. You can use a modern build system like Bazel. Just make sure to include some simple instructions for how to compile the source and get a basic local server instance running.
Are you gonna build this?
make sure you review the code using coderabbit