[SR-Users] Htable reload

David Villasmil david.villasmil.work at gmail.com
Thu Apr 7 17:09:22 CEST 2022


Thanks Alex, I'm wondering how this will affect performance if there are
many thousands or even millions of records...

Regards,

David Villasmil
email: david.villasmil.work at gmail.com
phone: +34669448337


On Thu, Apr 7, 2022 at 4:03 PM Alex Balashov <abalashov at evaristesys.com>
wrote:

> No, the reload actually creates a temporary new hash table (in heap),
> loads the entries from the DB into it, then iterates through the buckets of
> that temporary table and replaces the entries (pointers) in the existing
> table with the entries from the temporary table, then frees the buckets in
> the temporary table.
>
> > On Apr 7, 2022, at 4:43 AM, David Villasmil <
> david.villasmil.work at gmail.com> wrote:
> >
> > Hello all,
> >
> > I’ve been trying to figure out how htable reloads happen. Does it
> replaces the existing one or creates a new one, populates it from the db
> and then renames it? The latter would be (I think) ideal, even if it uses
> more resources.
> >
> > Thanks!
> >
> > David
> > --
> > Regards,
> >
> > David Villasmil
> > email: david.villasmil.work at gmail.com
> > phone: +34669448337
> > __________________________________________________________
> > Kamailio - Users Mailing List - Non Commercial Discussions
> >  * sr-users at lists.kamailio.org
> > Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> > Edit mailing list options or unsubscribe:
> >  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Alex Balashov | Principal | Evariste Systems LLC
>
> Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free)
> Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
>
>
> __________________________________________________________
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users at lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220407/73e80281/attachment.htm>


More information about the sr-users mailing list