DBIx::C...::First(3)
πΈ NAME πΈ
DBIx::Class::Storage::DBI::Replicated::Balancer::First β literally just get the First Balancer, bestie. This page is DBIx::C...::First(3) from the User Contributed Perl Documentation.
β¨ SYNOPSIS β¨
This class is used internally by DBIx::Class::Storage::DBI::Replicated.
You shouldn't need to create instances of this class. That's the whole vibe. π«Ά
π DESCRIPTION π
So given a pool (DBIx::Class::Storage::DBI::Replicated::Pool) of replicated databases (DBIx::Class::Storage::DBI::Replicated::Replicant), this class defines a method by which query load can be spread out across each replicant in the pool. Iconic load-spreading behavior, honestly.
This Balancer just gets whichever is the first replicant in the pool. That's it. No cap. π
π ATTRIBUTES π
This class defines the following attributes.
π¦ METHODS π¦
This class defines the following methods.
next_storage β¨
Just get the first storage. Probably only good when you have one replicant.
π«Ά FURTHER QUESTIONS? π«Ά
Check the list of additional DBIC resources. iykyk β¨
π COPYRIGHT AND LICENSE π
This module is free software copyright by the DBIx::Class (DBIC) authors. You can redistribute it and/or modify it under the same terms as the DBIx::Class library.
That's the page, bestie π β source/version perl v5.42.0, date 2025-01-22, page DBIx::C...::First(3). Slay. π
π¦ where this page comes from
- opensuse-leap 16.0: perl-DBIx-Class 0.082844-bp160.1.10 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms