[OpenSIPS-Users] Opensips Memory dr_rules
Bogdan-Andrei Iancu
bogdan at opensips.org
Fri Jun 7 15:09:36 CEST 2013
Hi Nick,
The loading on startup is mandatory - it addresses not only the
avoidance of DB queries on runtime, but it also re-arranges the data in
a different format (for performance reasons) - data is record oriented
in DB, while after being loaded by DR, it is tree-based oriented. In a
record oriented format, the search is O(n) (where n is number of rules)
while in a tree the search is O(1).
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 06/07/2013 04:07 AM, Nick Khamis wrote:
> Bogdan, if we use a memchace and localcache hybrid can we somehow
> disable db load caching on startup? If not, are there still any
> performance benefits for using the cachedb directives or was that a
> pre 1.7 train of thought?
>
> The only one benefit I can see is a smaller subset of cached already
> executed routes that will be pulled from the main startup cached set.
>
> Kind Regards,
>
> Nick.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list