by mflorell » Sun Mar 12, 2023 8:51 am
I would strongly encourage you to archive or delete the leads that you will not be dialing anymore if possible. On a high-end database server, performance falls greatly after you get past 10 million active leads, so it is best to delete or archive leads once you get past that point. On lower-end database servers, that magic number is 2 million active leads.
Archiving leads means you cannot dial from them anymore, but they are still accessible to search for within the admin web screens.
Here is an example of how to archive leads in MySQL:
CREATE TABLE vicidial_list_archive LIKE vicidial_list;
ALTER TABLE vicidial_list_archive MODIFY lead_id INT(9) UNSIGNED NOT NULL;
select count(*) from vicidial_list where list_id IN('9998','100','110','120','150','170','180','200','250','300','350','400','450','500','550','600','650','700','800','850','900');
INSERT INTO vicidial_list_archive SELECT * from vicidial_list where list_id IN('9998','100','110','120','150','170','180','200','250','300','350','400','450','500','550','600','650','700','800','850','900');
select count(*) from vicidial_list_archive where list_id IN('9998','100','110','120','150','170','180','200','250','300','350','400','450','500','550','600','650','700','800','850','900');
DELETE from vicidial_list where list_id IN('9998','100','110','120','150','170','180','200','250','300','350','400','450','500','550','600','650','700','800','850','900');
optimize table vicidial_list;