In the original Asterisk source code (cdr_adaptive_odbc.c), during the CDR insertion (INSERT INTO cdr operation), the code was calling the ast_odbc_prepare_and_execute() function without explicitly ...
Rewrite and route all insert statements to actual tables if the table is sharded. Leave non-sharded tables unaffected so batch inserts still work normally. For sharded tables, only the first insert is ...