Overview

Advanced Features

Multi-database architecture#

const { AxioDB } = require("axiodb");
 
const Instance = new AxioDB({ GUI: true });
const CustomPathInstance = new AxioDB({ GUI: true, RootName: "NewDB", CustomPath: "./DB" });
 
const setup = async () => {
  const UserDB = await Instance.createDB("MyDB");
  const UserCollection = await UserDB.createCollection("Users");
 
  await UserCollection.insertMany([
    { name: "John Doe", email: "john.doe@example.com", age: 30 },
    { name: "Jane Doe", email: "jane.doe@example.com", age: 25 },
    { name: "Alice Smith", email: "alice.smith@example.com", age: 28 }
  ]);
 
  const results = await UserCollection.query({
    email: { $in: ["john.doe@example.com", "jane.doe@example.com"] }
  })
    .Limit(10)
    .Skip(2)
    .Sort({ age: 1 })
    .setCount(true)
    .setProject({ _id: 1, name: 1, email: 1 })
    .exec();
 
  const fastRes = await UserCollection.query({ documentId: "JOHTAOIJNHUJOBD" }).exec();
};
 
setup();

Custom query processing#

MongoDB-compatible operators for precise filtering: $regex for pattern matching, $gt / $lt / $in for comparison, .setProject() and .setCount() for shaping results.

ACID transactions#

Atomic operations with startTransaction(), commit(), and rollback() support, backed by Write-Ahead Logging for crash recovery.

Performance optimization#

  • Fast lookups via documentId
  • Pagination with .Limit() and .Skip()
  • InMemoryCache for frequently accessed data
  • Data structures optimized for your query patterns

Enterprise data management#

  • High-performance bulk insert and update operations
  • Conditional updates with sophisticated query filters
  • Dynamic collection and database lifecycle management
  • Atomic operations ensuring data consistency

Best practice: combine aggregation pipelines for complex analytics with multi-database architecture for microservices — this pairing covers most enterprise use cases without extra infrastructure.

Next#

Updated

Was this page helpful?