MongoDB Developer Community Forums
281 FOLLOWERS
Welcome to the MongoDB Developer forum, a space to introduce yourself and get information, announcements, and weekly updates. Also, come across Byte-size knowledge sharing on MongoDB topics curated by the MongoDB Community team, and get the community code of conduct.
MongoDB Developer Community Forums
1h ago
Hi,
I am using Atlas search to index and search by emails. I have the following index:
{
"mappings": {
"fields": {
"fields": {
"email": {
"analyzer": "basicEmailAddressAnalyzer",
"type": "string"
}
}
}
},
"analyzers": [
{
"name": "basicEmailAddressAnalyzer",
"tokenizer": {
"type": "uaxUrlEmail"
},
"tokenFilters": [
{
"type": "lowercase"
}
]
}
]
}
And I use this query to search:
[
{
$search: {
index: "v1",
text: {
query: "some.email ..read more
MongoDB Developer Community Forums
5h ago
Hi all
Wondering, who has used Mongo as a replacement for Elastic…
Think scenario. FileBeat > Kafka > Mongo via Sink.
Between Kafka, Flint and Mongo streams you have enough processing options to enrich the / convert the log line to a JSON doc.
How would you then Dashboard the information, Charts, or anyone aware of a solution ?
with the data in Mongo you can of course pull in a AI/ML … even store embeddings inside Mongo… would be interesting if someone build a SIEM solution on MongoDB…
G
1 post - 1 participant
Read full topic ..read more
MongoDB Developer Community Forums
17h ago
bson_error_t error;
bson_t *bson_search = bson_new_from_json (json, strlen(json), &error);
if (!bson_search)
{
log_fatal(error.message);
}
mongoc_cursor_t *cursor;
cursor = mongoc_collection_aggregate(client.collection, MONGOC_QUERY_NONE, bson_search, NULL, NULL);
int i = 0;
char *str;
const bson_t *doc;
while (mongoc_cursor_next (cursor, &doc))
{
str = bson_as_json (doc, NULL);
printf ("%s\n", str);
bson_free (str);
i++;
}
if (mongoc_cursor_error (cursor, &error ..read more
MongoDB Developer Community Forums
21h ago
Hi,
We have a script that read a collection X, do some processing and write in the collection Y. Usually the script takes ~1 hour but sometime it’s very very slow. What can affect performance?
I don’t see a big load on my cluster… maybe a lock on my X collection that is slowing down my script? Size of my X collection: Long(‘27776896250’).
Thanks for your help.
1 post - 1 participant
Read full topic ..read more
MongoDB Developer Community Forums
21h ago
I have a .Net Maui application which to date has worked well with Ream Sync.
However now I get the error “Database has an unsupported version (24) and cannot be upgraded” when I create the Realm (App.RealmApp = Realms.Sync.App.Create(appId);).
This error is only raised when I debug in Windows, debugging in Android mobile emulator is no problem.
1 post - 1 participant
Read full topic ..read more
MongoDB Developer Community Forums
1d ago
Hi team,
I would like to know if it is possible to create a ReplicaSet of 3 nodes using 3 containers installed on 3 different virtual servers.
Regards
Olivier
1 post - 1 participant
Read full topic ..read more
MongoDB Developer Community Forums
1d ago
I’m having trouble understanding what the Atlas integration does in Vercel. I saw a post from a Mongo employee stating it is a “Native” integration; but on the surface it just seems like it provisions some users in Atlas then adds some Vercel environment variables.
Is there anything happening from a technical standpoint? Is it supposed to handle connection pooling with the serverless-nature of Vercel or something?
Thank you
1 post - 1 participant
Read full topic ..read more
MongoDB Developer Community Forums
1d ago
Hello! I’m relatively new to MongoDB, and am having trouble understanding why my query is taking so long. To give a bit of background, I’m creating a query to pull down activity data for users, where for each user their activity is stored as an array of entries with times attached. I attempted to create a combined index for my DB to make userid and time queries quicker. It looks like this: userid_1_activity.time_1 in Atlas.
My query looks like this:
import connectMongoDB from "../../../../../../libs/mongoDB";
import Personal from "../../../../../../models/Personal";
export async function GET ..read more
MongoDB Developer Community Forums
1d ago
MongoDB on Gemini and GCP Cloud technologies
Join Bengaluru, MongoDB User Group and Google for developers for a Saturday Brunch filled with interactive sessions, games, and fun at Wissen Infotech, Bengaluru on May 18th 2024.
We have sessions that include learning about MongoDB on GCP and how using performance insights can help you analyze and improve your database performance.
We will also have fun Networking Time to meet some of the developers, customers, architects, and experts in the region. Not to forget there will also be, Trivia Swags , and Lunch. :
Registration
Please register here t ..read more
MongoDB Developer Community Forums
1d ago
Im currently seeding a mongodb cluster for a large scale api. I have over 10 categories of data with 8 subcategories for each category. Assuming i will never have to make a query for more than 1 category at a time would it be better to have 10 databases on the same cluster for each category with their respective subcategories(They all share the same 6 subCategories but may have 1-2 unique subcategories or collections) or would it be better to just have all the categories on 1 database and have them share the default subcategories and have unique subcategories for each. I was also thinking abou ..read more