Recently i have worked on a project which has lots of (in lakhs) data, I have a CSV file which we need to import in database, suppose the CSV have arround 2 lacks data, so when i try to import it then ststem consums too much time and gives the timeout error and failed to upload, to resole these type of issue the Batch API comes in My mind, Why use batch API, Batch API makes a queue of operations and performs each operations one by one, so system did not give the timeout issue, and batch API also shows the status of uploading and remaning data, Here i am assuming you have basic knowledge of drupal module development, Step -1 : create a module within your drupal application, Lets assume module name is dharmend, Now i am going to create a menu , so i have added hook_menu in module file <?php /* implement hook_menu to create a new menu, * */ function dharmend_menu(){ $items['csvImporter'] = array( 'title' => t('Upload Data Fro...
Trying to Learn new things on drupal.