Create New tables for each list_id
Posted: Fri Oct 13, 2017 10:34 am
Hi All Vici guru's
Searched the forum...ever been any feature request to create and maintain lists in a different tables for each list instead of the single table vicidial_list?
The code implications are large for lots of production files, I get that. However this 1 structural change could ultimately change the productivity and query efficiency by a leaps and bounds. Expanding the capacity for existing DB servers to 10s of millions of records for dialing.
What would be involved for production? Could this be achieved with a sed find and replace?
Lists of files to consider changes to.
grep -ilr 'insert into vicidial_list\|update vicidial_list\|from vicidial_list' /srv/www/htdocs/*
/srv/www/htdocs/agc/vdc_script_display.php
/srv/www/htdocs/agc/manager_send.php
/srv/www/htdocs/agc/vdc_script_dispo_example.php
/srv/www/htdocs/agc/vicidial_bak_orig.php
/srv/www/htdocs/agc/vicidial.php
/srv/www/htdocs/agc/vdc_form_display.php
/srv/www/htdocs/agc/vicidial_nodiv.php
/srv/www/htdocs/agc/vdc_script_notes.php
/srv/www/htdocs/agc/functions.php
/srv/www/htdocs/agc/dispo_move_list.php
/srv/www/htdocs/agc/api.php
/srv/www/htdocs/agc/audit_comments.php
/srv/www/htdocs/agc/vicidialshiftplanner.php
/srv/www/htdocs/agc/deactivate_lead.php
/srv/www/htdocs/agc/vdc_db_query.php
/srv/www/htdocs/agc/vicidial_applied.php
/srv/www/htdocs/vicidial/lead_tools_advanced.php
/srv/www/htdocs/vicidial/remote_dispo.php
/srv/www/htdocs/vicidial/reset_campaign_lists.php
/srv/www/htdocs/vicidial/user_stats.php
/srv/www/htdocs/vicidial/list_split.php
/srv/www/htdocs/vicidial/count_functions.inc
/srv/www/htdocs/vicidial/admin.php
/srv/www/htdocs/vicidial/admin_modify_lead.php
/srv/www/htdocs/vicidial/spreadsheet_sales_viewer.pl
/srv/www/htdocs/vicidial/call_report_export_carrier.php
/srv/www/htdocs/vicidial/closer-fronter_popup2.php
/srv/www/htdocs/vicidial/admin_NANPA_updater.php
/srv/www/htdocs/vicidial/AST_VDADstats.php
/srv/www/htdocs/vicidial/lead_report_export.php
/srv/www/htdocs/vicidial/AST_hangup_cause_report.php
/srv/www/htdocs/vicidial/AST_dialer_inventory_report.php
/srv/www/htdocs/vicidial/AST_LIST_UPDATEstats.php
/srv/www/htdocs/vicidial/listloader_stmts.txt
/srv/www/htdocs/vicidial/non_agent_api.php
/srv/www/htdocs/vicidial/closer_dispo.php
/srv/www/htdocs/vicidial/callbacks_bulk_move.php
/srv/www/htdocs/vicidial/AST_LISTS_pass_report.php
/srv/www/htdocs/vicidial/closer-fronter_popup.php
/srv/www/htdocs/vicidial/called_counts_multilist_report.php
/srv/www/htdocs/vicidial/AST_LISTS_stats.php
/srv/www/htdocs/vicidial/listloader_rowdisplay.pl
/srv/www/htdocs/vicidial/closer_popup.php
/srv/www/htdocs/vicidial/AST_LISTS_campaign_stats.php
/srv/www/htdocs/vicidial/call_report_export.php
/srv/www/htdocs/vicidial/vicidial_sales_viewer.php
/srv/www/htdocs/vicidial/user_status.php
/srv/www/htdocs/vicidial/admin_search_lead.php
/srv/www/htdocs/vicidial/AST_campaign_status_list_report.php
/srv/www/htdocs/vicidial/list_download.php
/srv/www/htdocs/vicidial/qc_modify_lead.php
/srv/www/htdocs/vicidial/lead_tools.php
/srv/www/htdocs/vicidial/leadloader_template_display.php
/srv/www/htdocs/vicidial/AST_admin_template_maker.php
/srv/www/htdocs/vicidial/user_territories.php
/srv/www/htdocs/vicidial/admin_listloader_fourth_gen.php
/srv/www/htdocs/vicidial/AST_carrier_log_report.php
/srv/www/htdocs/vicidial/admin_listloader_third_gen.php
/srv/www/htdocs/vicidial/admin_lists_custom.php
/srv/www/htdocs/vicidial/AST_url_log_report.php
/srv/www/htdocs/vicidial/admin_campaign_multi_alt.php
grep -ilr 'insert into vicidial_list\|update vicidial_list\|from vicidial_list' /usr/share/astguiclient/*
./ADMIN_adjust_GMTnow_on_leads.pl
./ADMIN_keepalive_ALL.pl
./AST_CRON_purge_recordings.pl
./AST_DB_action.pl
./AST_DB_dead_cb_purge.pl
./AST_DB_lead_status_change.pl
./AST_DB_territory_populate.pl
./AST_DB_tz_divide.pl
./AST_VDauto_dial.pl
./AST_VDauto_dial_FILL.pl
./AST_VDhopper.pl
./AST_VDlist_summary_export.pl
./AST_VDlist_summary_export_UK.pl
./AST_VDremote_agents.pl
./AST_VDsales_export.pl
./AST_VDsales_export_SFTP.pl
./AST_VDsales_export_SFTPSSH2.pl
./AST_VDweekly_agent_statuses_report.pl
./AST_call_log_export.pl
./AST_dialer_inventory_snapshot.pl
./AST_inbound_email_parser.pl
./AST_recordings_export.pl
./AST_send_URL.pl
./AST_sourceID_summary_export.pl
./FastAGI_log.pl
./QC_gather_records.pl
./VICIDIAL_DEDUPE_leads.pl
./VICIDIAL_IN_new_leads_file.pl
./VICIDIAL_UPDATE_leads_status_file.pl
./VICIDIAL_fix_list_statuses.pl
./VICIDIAL_fix_status_mismatch.pl
./VICIDIAL_last_local_call_time_UPDATE.pl
./VICIDIAL_rebuild_list_statuses.pl
./Vtiger_OUT_sync2VICIDIAL_file.pl
./libs/vicidial.pm
./nanpa_type_filter.pl
./nanpa_type_preload.pl
What would be involved for reporting?
Select Unions or trigger updates to the original table?
If trigger updates to a reporting table vicidial_list - no changes to reporting?
Searched the forum...ever been any feature request to create and maintain lists in a different tables for each list instead of the single table vicidial_list?
The code implications are large for lots of production files, I get that. However this 1 structural change could ultimately change the productivity and query efficiency by a leaps and bounds. Expanding the capacity for existing DB servers to 10s of millions of records for dialing.
What would be involved for production? Could this be achieved with a sed find and replace?
Lists of files to consider changes to.
grep -ilr 'insert into vicidial_list\|update vicidial_list\|from vicidial_list' /srv/www/htdocs/*
/srv/www/htdocs/agc/vdc_script_display.php
/srv/www/htdocs/agc/manager_send.php
/srv/www/htdocs/agc/vdc_script_dispo_example.php
/srv/www/htdocs/agc/vicidial_bak_orig.php
/srv/www/htdocs/agc/vicidial.php
/srv/www/htdocs/agc/vdc_form_display.php
/srv/www/htdocs/agc/vicidial_nodiv.php
/srv/www/htdocs/agc/vdc_script_notes.php
/srv/www/htdocs/agc/functions.php
/srv/www/htdocs/agc/dispo_move_list.php
/srv/www/htdocs/agc/api.php
/srv/www/htdocs/agc/audit_comments.php
/srv/www/htdocs/agc/vicidialshiftplanner.php
/srv/www/htdocs/agc/deactivate_lead.php
/srv/www/htdocs/agc/vdc_db_query.php
/srv/www/htdocs/agc/vicidial_applied.php
/srv/www/htdocs/vicidial/lead_tools_advanced.php
/srv/www/htdocs/vicidial/remote_dispo.php
/srv/www/htdocs/vicidial/reset_campaign_lists.php
/srv/www/htdocs/vicidial/user_stats.php
/srv/www/htdocs/vicidial/list_split.php
/srv/www/htdocs/vicidial/count_functions.inc
/srv/www/htdocs/vicidial/admin.php
/srv/www/htdocs/vicidial/admin_modify_lead.php
/srv/www/htdocs/vicidial/spreadsheet_sales_viewer.pl
/srv/www/htdocs/vicidial/call_report_export_carrier.php
/srv/www/htdocs/vicidial/closer-fronter_popup2.php
/srv/www/htdocs/vicidial/admin_NANPA_updater.php
/srv/www/htdocs/vicidial/AST_VDADstats.php
/srv/www/htdocs/vicidial/lead_report_export.php
/srv/www/htdocs/vicidial/AST_hangup_cause_report.php
/srv/www/htdocs/vicidial/AST_dialer_inventory_report.php
/srv/www/htdocs/vicidial/AST_LIST_UPDATEstats.php
/srv/www/htdocs/vicidial/listloader_stmts.txt
/srv/www/htdocs/vicidial/non_agent_api.php
/srv/www/htdocs/vicidial/closer_dispo.php
/srv/www/htdocs/vicidial/callbacks_bulk_move.php
/srv/www/htdocs/vicidial/AST_LISTS_pass_report.php
/srv/www/htdocs/vicidial/closer-fronter_popup.php
/srv/www/htdocs/vicidial/called_counts_multilist_report.php
/srv/www/htdocs/vicidial/AST_LISTS_stats.php
/srv/www/htdocs/vicidial/listloader_rowdisplay.pl
/srv/www/htdocs/vicidial/closer_popup.php
/srv/www/htdocs/vicidial/AST_LISTS_campaign_stats.php
/srv/www/htdocs/vicidial/call_report_export.php
/srv/www/htdocs/vicidial/vicidial_sales_viewer.php
/srv/www/htdocs/vicidial/user_status.php
/srv/www/htdocs/vicidial/admin_search_lead.php
/srv/www/htdocs/vicidial/AST_campaign_status_list_report.php
/srv/www/htdocs/vicidial/list_download.php
/srv/www/htdocs/vicidial/qc_modify_lead.php
/srv/www/htdocs/vicidial/lead_tools.php
/srv/www/htdocs/vicidial/leadloader_template_display.php
/srv/www/htdocs/vicidial/AST_admin_template_maker.php
/srv/www/htdocs/vicidial/user_territories.php
/srv/www/htdocs/vicidial/admin_listloader_fourth_gen.php
/srv/www/htdocs/vicidial/AST_carrier_log_report.php
/srv/www/htdocs/vicidial/admin_listloader_third_gen.php
/srv/www/htdocs/vicidial/admin_lists_custom.php
/srv/www/htdocs/vicidial/AST_url_log_report.php
/srv/www/htdocs/vicidial/admin_campaign_multi_alt.php
grep -ilr 'insert into vicidial_list\|update vicidial_list\|from vicidial_list' /usr/share/astguiclient/*
./ADMIN_adjust_GMTnow_on_leads.pl
./ADMIN_keepalive_ALL.pl
./AST_CRON_purge_recordings.pl
./AST_DB_action.pl
./AST_DB_dead_cb_purge.pl
./AST_DB_lead_status_change.pl
./AST_DB_territory_populate.pl
./AST_DB_tz_divide.pl
./AST_VDauto_dial.pl
./AST_VDauto_dial_FILL.pl
./AST_VDhopper.pl
./AST_VDlist_summary_export.pl
./AST_VDlist_summary_export_UK.pl
./AST_VDremote_agents.pl
./AST_VDsales_export.pl
./AST_VDsales_export_SFTP.pl
./AST_VDsales_export_SFTPSSH2.pl
./AST_VDweekly_agent_statuses_report.pl
./AST_call_log_export.pl
./AST_dialer_inventory_snapshot.pl
./AST_inbound_email_parser.pl
./AST_recordings_export.pl
./AST_send_URL.pl
./AST_sourceID_summary_export.pl
./FastAGI_log.pl
./QC_gather_records.pl
./VICIDIAL_DEDUPE_leads.pl
./VICIDIAL_IN_new_leads_file.pl
./VICIDIAL_UPDATE_leads_status_file.pl
./VICIDIAL_fix_list_statuses.pl
./VICIDIAL_fix_status_mismatch.pl
./VICIDIAL_last_local_call_time_UPDATE.pl
./VICIDIAL_rebuild_list_statuses.pl
./Vtiger_OUT_sync2VICIDIAL_file.pl
./libs/vicidial.pm
./nanpa_type_filter.pl
./nanpa_type_preload.pl
What would be involved for reporting?
Select Unions or trigger updates to the original table?
If trigger updates to a reporting table vicidial_list - no changes to reporting?