[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 22:03: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 22:03 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"
====================================================================== 

---------------------------------------------------------------------- 
 (0122351) kkwong (reporter) - 2010-05-24 22:03
 https://issues.asterisk.org/view.php?id=17380#c122351 
---------------------------------------------------------------------- 
the table already have index on "start" field same result. also tested same
statement (SELECT 1 FROM somemassivetable) in oracle 9i will result same
that took a very long time. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-05-24 22:03 kkwong         Note Added: 0122351                          
======================================================================




More information about the asterisk-bugs mailing list