28 Jan
2009
28 Jan
'09
5:10 a.m.
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 supported. Ivan Kalik Kalik Informatika ISP