Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
Kamil wrote:Hi, I'm new to Vicidialer and have few questions.
I have a phone list for my state that consists of separate lists (2500 files) by zip code and also contains one huge (620mb) file which I can load at once. My question is if there is any advantage loading file by file or if I can load one huge file and later sort it by the zip code?
Someone told me that it is easier to call specific zip codes in your campaign when you have separate lists for each zip code.
Another question is, if it is better to load file by file, then is there any way to automate this process to avoid doing this multi step process 2500 times?
williamconley wrote:list ID is a field during load. as long as you do not 'override' the list_id field, you can load ALL your lists in a single file.
Kamil wrote:But in this case I would need to have matching lists already made, right?
williamconley wrote:Kamil wrote:But in this case I would need to have matching lists already made, right?
Nope. Leads will be added to lists and you can create the lists later. SQL is quite capable of creating lists in bulk if you like. I do not know if the command line lead-loader is capable of making them on the fly except "one per list loaded".
However, if you have your zip files split into multiple files it is possible to have lists made automatically .. but I think they will be numbered sequentially instead of "per zip". You'd have to check the options for the loader.
If it were me, and I didn't have time to check, I'd load the whole thing with the zip as the list ID and then write a script to generate all those lists after the fact (the leads will be waiting in those lists and become usable when the lists are created). Probably with a simple PHP file (in case I ever have need to duplicate the process for the same client).
If you export the "vicidial_lists" table you will find the proper format for creating a list. Dupe it.
geoff3dmg wrote:If you are unsure, go look at the code.
Kamil wrote:geoff3dmg wrote:If you are unsure, go look at the code.
If this was Microsoft code I could, but I'm not that familiar with PHP. I thought maybe people already had some kind of input regarding this. Because it just doesn't make any sense for someone to create 2000 lists one by one and do this for each state that you call if you create your lists based on zip code.
vicidial-db:/srv/www/htdocs/vicidial # grep INSERT.*vicidial_lists admin.php
$stmt="INSERT INTO vicidial_lists (list_id,list_name,campaign_id,active,list_description,list_changedate) values('$list_id','$list_name','$campaign_id','$active','$list_description','$SQLdate');";
$stmt="INSERT INTO vicidial_lists_custom (audit_comments, list_id) VALUES ('" . mysqli_real_escape_string($link, $audit_comments) . "','$list_id') ON DUPLICATE KEY UPDATE audit_comments='" . mysqli_real_escape_string($link, $audit_comments) . "';";
Kamil wrote:My only question is if things like listID and other fields in vicidial_list and vicidial_lists tables have foreign keys in other tables. Other words, do I only need to populate vicidial_lists table or other tables too?
Users browsing this forum: Bing [Bot], Google [Bot] and 107 guests