return a Hash for each line of the CSV file, so we can quickly use the results for either creating MongoDB or ActiveRecord entries, or further processing with Resque.able to chunk the input from the CSV file to avoid loading the whole CSV file into memory.Smarter CSV was a big part and helped clean up our code ALOT taking an import process from 7+ hours to about 3 minutes. You can use the options below to accomodate for unusual formats. If you encounter unusual CSV files, please follow the tips in the Troubleshooting section below. Therefore, when calling SmarterCSV.process, please rescue from SmarterCSVException, and handle outliers according to your requirements. While SmarterCSV uses sensible defaults to process the most common CSV files, it will raise exceptions if it can not auto-detect col_sep, row_sep, or if it encounters other problems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |