Connectors
SingleStore
Kai™
100x faster operations on MongoDB®. No query changes. No transformations.
![SingleStore Kai](https://images.contentstack.io/v3/assets/bltac01ee6daa3a1e14/bltb8839de6f19e5dfe/679c71a4b681384c926785cc/kai-hero.png?width=1024&disable=upscale&auto=webp)
SingleStore is not a MongoDB® Partner. SingleStore Kai™ is an API that offers compatibility and enhanced performance for applications build on Mongo.
Huge performance benefits
SingleStore’s powerful query engine brings 100x faster queries to your JSON data.
Various under the hood optimizations give improved performance on aggregations like $count, $lookup and $group.
![SingleStore Kai performance benefits](https://images.contentstack.io/v3/assets/bltac01ee6daa3a1e14/bltba844530b6a8bc87/679719b8b3cc477de290ddb1/kai-performance-benefits.png?width=1024&disable=upscale&auto=webp)
![SingleStore Kai query](https://images.contentstack.io/v3/assets/bltac01ee6daa3a1e14/blt80eee6598cdd5a27/67971a5ad330db0f6e92d754/kai-zero-effort-improvements.png?width=1024&disable=upscale&auto=webp)
Zero-effort improvements
No need to transform your existing data. No need to modify your queries.
Send your existing MongoDB queries through your SingleStore instance, and we’ll work our magic to give you insights on your JSON data faster than you thought possible.
Forget complex system migrations. Get set up in minutes. Reduce query time by orders of magnitude.
Easy as 1, 2, 3
Get started in three easy steps.
SingleStore works around your existing tech stack — no complex migration required.
Step 1
Set up a link to your MongoDB® instance
1
db.runCommand({2
createLink: "myLink",3
uri: "mongodb+srv://admin:<password>@cluster0.gsdas.example.com?retryWrites=true&w=majority",4
});
This uses Change Data Capture (CDC) to ingest historical data and sync the continuous changes.
Step 2
Change the endpoint to SingleStore Kai
1
const mongoUri = "<your-kai-endpoint>";2
3
mongoose.connect(mongoUri, {4
useNewUrlParser: true,5
useUnifiedTopology: true6
})7
.then(() => {8
console.log("connected!");9
})10
.catch((err) => {11
console.error("connection error:", err);12
});
Change the URI in your app logic to use your new SingleStore Kai endpoint.
Step 3
Execute your query in Mongo syntax
1
db.sales.aggregate([2
{3
$addFields: {4
totalRevenue: {5
$multiply: ["$price", "$quantity"]6
}7
}8
},9
{10
$group: {11
_id: "$category",12
totalRevenue: {13
$sum: "$totalRevenue"14
}15
}16
},17
{18
$sort: {19
totalRevenue: -120
}21
}22
]);
You're all set! Enjoy much faster analytics queries on MongoDB!
Explore some sample code
View some of our Jupyter Notebooks showing how to use SingleStore Kai.
Benefits
No-effort migrations
Zero code changes and zero data transformations required for supported commands and operations
Faster aggregation queries
Faster aggregation queries on your JSON data without losing transactional performance
Scale-out
Natively scaled out solution that offers superior concurrency and query speeds for no extra cost
AI + vector search on JSON data
Provide semantics on vectors using dot_product, euclidean_distance, and many other functions with native vector support
Best of both worlds
Developers can utilize both the MongoDB® API and a SQL API to power their applications
Interoperability
Even if you start building your application on Mongo, you can use SingleStore to get the most meaning from your data with your preferred tool or query language.
Aggregations
Run aggregations on data and improve performance for things like $count, $lookup and $group
![](https://images.contentstack.io/v3/assets/bltac01ee6daa3a1e14/bltf9773658d3d62dd1/67a0a522ecc9d76bb6412895/img_bg_texture-1_mono.png?height=400&disable=upscale&auto=webp)
Book a demo
Book a one-on-one session with a product expert to explore SingleStore