sql insert via unlang

tnt at kalik.net tnt at kalik.net
Wed Jan 28 11:10:39 CET 2009

>I try to add prepaid system to my equipment.
>In this case when quota is reached, equipment sends Access-Request with
>quota comsumed and I need to store this data in sql. But. Unfortunately,
>I must think about how many on-line customers send quota to sql in same
>time. Yes, I can write perl script with sql insert and update and
>freeradius will execute this one every time for quota data. But, I think
>this is not for system with many customers.

Perl is very fast but it needs to open (and close) the connection to the
database and that is expensive. Unlang uses threads open by freeradius
at startup. So it will work faster. But I don't think that INSERT is

Ivan Kalik
Kalik Informatika ISP

More information about the Freeradius-Users mailing list