[asterisk-bugs] [Asterisk 0017380]: long waiting (over 2 min) for cdr_tds running "SELECT 1 FROM cdr" when asterisk starting with aournd 3mil cdr in table

Asterisk Bug Tracker noreply at bugs.digium.com
Mon May 24 11:56:26 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17380 
====================================================================== 
Reported By:                kkwong
Assigned To:                seanbright
====================================================================== 
Project:                    Asterisk
Issue ID:                   17380
Category:                   CDR/cdr_tds
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.31 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-05-24 06:27 CDT
Last Modified:              2010-05-24 11:56 CDT
====================================================================== 
Summary:                    long waiting (over 2 min) for cdr_tds running
"SELECT 1 FROM cdr" when asterisk starting with aournd 3mil cdr in table
Description: 
we are testing asterisk 1.4.31 to replace old 1.2x box, when start then new
1.4.31 box with "asterisk -cvvvv" it stop at 

"== Parsing '/etc/asterisk/cdr_tds.conf': Found"

for more then 2 min and from sql profiler shows it running the query 

"SELECT 1 FROM cdr"
====================================================================== 

---------------------------------------------------------------------- 
 (0122303) qwell (administrator) - 2010-05-24 11:56
 https://issues.asterisk.org/view.php?id=17380#c122303 
---------------------------------------------------------------------- 
Good old MSSQL..  I remember running into this problem years ago.  We used
a very similar query (SELECT 1 FROM somemassivetable), and it took a very
long time.

It *may* help to add an index to that table.  It may not use it though,
since there is no WHERE clause. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-05-24 11:56 qwell          Note Added: 0122303                          
======================================================================




More information about the asterisk-bugs mailing list