Jump to content
Jules Vau

Import CSV file (with all the raws) before time out in one time ?

Recommended Posts

Hello !

I use Batch child editor (1.8.10) to import a CSV file (6500 raws) to create new pages. It's works ! But the module only import 5500 raws. My screen display "504 Gateway Time-out".
There is a way to import all the raws in one time AND before the time out?

Thanks in advance

Web host config:
PHP version 7.1
MySQL : v.5.5

ProcessWire:
3.0.96.

 

 

 

Share this post


Link to post
Share on other sites
2 hours ago, Jules Vau said:

There is a way to import all the raws in one time AND before the time out?

 

If you are on a unix based system then you should give a try to Tasker/DataSet as @dragan said or look at the pcntl extension used in conjunction with the lib PHP League CSV. On windows (because the pcntl extension is not supported) I am used to write a custom import script with the same lib (PHP League)  and calling `set_time_limit()` in the loop after importing X records. I import and create something like ~15k pages each night, it work pretty good.

  • Like 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...