MongoD...oncern(3pm)
π MongoDB::ReadConcern β the vibe check for your read concern π
okay bestie, so this is MongoDB::ReadConcern</p>, a Perl module from the User Contributed Perl Documentation section (that's the (3pm) situation, iykyk). It encapsulates and validates a read concern β like, it's the little object that holds your read-concern settings and makes sure they're not a mess before they go anywhere. π
β¨ VERSION β¨
This is version v2.2.2, periodt. π
πΈ SYNOPSIS πΈ
Here's the whole flex, no notes:
$rc = MongoDB::ReadConcern->new(); # no defaults
$rc = MongoDB::ReadConcern->new(
level => 'local',
);
So yeah β you can make one with literally no defaults at all, or you can hand it a level and go about your day. π¦
π DESCRIPTION π
A Read Concern is basically the rules of the road that MongoDB has to obey when it's reading your data. It's like β what consistency do you need, bestie, what are you actually signing up for. Lowkey iconic that this even exists.
Read Concern was introduced in MongoDB 3.2, so if you're living in the past, that's a you problem. π
π§ ATTRIBUTES π§
β level
The read concern level is the thing that decides the consistency level required of data being read. It's the main character of this whole module, fr fr.
The default level is undef, which means the server will just use its configured default. So if you don't pick, the server picks for you. Respect honestly. π
If you set the level to local, reads will return the latest data a server has locally. That's it, that's the deal.
Additional levels are storage engine specific. So don't come for me asking for a full list β go read Read Concern at http://docs.mongodb.org/manual/search/?query=readConcern in the MongoDB documentation for more details. π
This may be set in a connection string with the the readConcernLevel option. (yes bestie, "the the" is right there in the original and I'm not touching it, it's canon now. π«Ά)
π AUTHORS π
Shoutout to the whole group chat of legends who built this:
- David Golden
<david@mongodb.com> - Rassi
<rassi@mongodb.com> - Mike Friedman
<friedo@friedo.com> - Kristina Chodorow
<k.chodorow@gmail.com> - Florian Ragwitz
<rafl@debian.org>
π COPYRIGHT AND LICENSE π
This software is Copyright (c) 2020 by MongoDB, Inc. π’
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
k that's the whole page bestie, no cap. This doc came from the User Contributed Perl Documentation for MongoD...oncern(3pm), and the footer energy is perl v5.40.1 dated 2025-04-03. Slay, bye!! π
β¨π
π¦ where this page comes from
- debian trixie: libmongodb-perl 2.2.2-3 Β· Apache-2.0
- ubuntu resolute: libmongodb-perl 2.2.2-3 Β· Apache-2.0
- ubuntu stonking: libmongodb-perl 2.2.2-3 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms