[asterisk-dev] cdr_mysql - do we really need "DESC cdr" every time?

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Tue Aug 26 16:00:02 CDT 2008


On Tuesday 26 August 2008 14:28:40 Chris Maciejewski wrote:
> I have just noticed cdr_mysql (addons 1.6) before inserting a CDR
> record into MySQL table, runs "DECS(ribe) cdr" _EVERY_ time.
>
> Would it not be better to load table structure (fields mappings) from
> cdr_mysql.conf and run ONLY "INSERT ...." statement?

The point is actually to allow arbitrary fields with minimal configuration
required.

> It seems to me we are causing unnecessary load on MySQL server and
> slowing things down.

I'll need some testing on this before it's committed.
http://bugs.digium.com/view.php?id=13379

-- 
Tilghman



More information about the asterisk-dev mailing list