[Skip to main content](#vessel-content)

#   CSV Import Size Limitations

##

- **[listsubscriber](/forum/user/16705-listsubscriber "View listsubscriber's Profile")**
- [![listsubscriber's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/16705-listsubscriber "View listsubscriber's Profile") Topic Author
- [ Offline](/forum/user/16705-listsubscriber)

Less More

- Posts: 31
- Thank you received: 0
-
-

12 years 10 months ago [\#139268](#139268) by [listsubscriber](/forum/user/16705-listsubscriber "View listsubscriber's Profile")  *[CSV Import Size Limitations](/forum/37-import-export-csv-xls/864906-csv-import-size-limitations#139268 "-- url of the page with the problem -- : drc144k.com/ -- HikaShop version -- : 2.2.2 -- Joomla version -- : Tried on 2.5.14 - 2.5.16 -- PHP version -- : Tried on 5.2.x thru 5.4.x ... same problem. -- Browser(s) name and version -- : Firefox, Chrome, Opera -- Error-message(debug-mod must be tuned on) -- : PHP Fatal -Allowed memory size of 536870912 bytes exhausted or eventually execution time of 600 seconds exceeded.  We are using the CSV import feature thru cron and we are currently at 40,000 products/variants. We either run into the timeout or the memory issue eventually.  We duplicated the Google Products plugin for each product type we have (t-shirt, jacket, cup, etc) so we could make smaller CSV files. Each plugin we have duplicated and reconfigured works well with the smaller files. This also works better with the Characteristics which are named the same, but have different values. However, the files still eventually grow to being over 16MB which is causing problems. We could continue to make things work by duplicating the plugin, but there has to be a better way, maybe even something we are overlooking.  Is there a way to get the Import plugin to process all CSV files in a certain directory (ex. media/com&#95;hikashop/import)? We could then create as many smaller .CSV files to be processed by cron and it would process them quicker than the 14-16MB files we have now for each category of products.  Thanks.")* was created by *[listsubscriber](/forum/user/16705-listsubscriber "View listsubscriber's Profile")*

-- url of the page with the problem -- : drc144k.com/
-- HikaShop version -- : 2.2.2
-- Joomla version -- : Tried on 2.5.14 - 2.5.16
-- PHP version -- : Tried on 5.2.x thru 5.4.x ... same problem.
-- Browser(s) name and version -- : Firefox, Chrome, Opera
-- Error-message(debug-mod must be tuned on) -- : PHP Fatal -Allowed memory size of 536870912 bytes exhausted or eventually execution time of 600 seconds exceeded.

We are using the CSV import feature thru cron and we are currently at 40,000 products/variants. We either run into the timeout or the memory issue eventually.

We duplicated the Google Products plugin for each product type we have (t-shirt, jacket, cup, etc) so we could make smaller CSV files. Each plugin we have duplicated and reconfigured works well with the smaller files. This also works better with the Characteristics which are named the same, but have different values. However, the files still eventually grow to being over 16MB which is causing problems. We could continue to make things work by duplicating the plugin, but there has to be a better way, maybe even something we are overlooking.

Is there a way to get the Import plugin to process all CSV files in a certain directory (ex. media/com_hikashop/import)? We could then create as many smaller .CSV files to be processed by cron and it would process them quicker than the 14-16MB files we have now for each category of products.

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NjQ5MDYtY3N2LWltcG9ydC1zaXplLWxpbWl0YXRpb25zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

12 years 10 months ago [\#139351](#139351) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[CSV Import Size Limitations](/forum/37-import-export-csv-xls/864906-csv-import-size-limitations#139351 "-- url of the page with the problem -- : drc144k.com/ -- HikaShop version -- : 2.2.2 -- Joomla version -- : Tried on 2.5.14 - 2.5.16 -- PHP version -- : Tried on 5.2.x thru 5.4.x ... same problem. -- Browser(s) name and version -- : Firefox, Chrome, Opera -- Error-message(debug-mod must be tuned on) -- : PHP Fatal -Allowed memory size of 536870912 bytes exhausted or eventually execution time of 600 seconds exceeded.  We are using the CSV import feature thru cron and we are currently at 40,000 products/variants. We either run into the timeout or the memory issue eventually.  We duplicated the Google Products plugin for each product type we have (t-shirt, jacket, cup, etc) so we could make smaller CSV files. Each plugin we have duplicated and reconfigured works well with the smaller files. This also works better with the Characteristics which are named the same, but have different values. However, the files still eventually grow to being over 16MB which is causing problems. We could continue to make things work by duplicating the plugin, but there has to be a better way, maybe even something we are overlooking.  Is there a way to get the Import plugin to process all CSV files in a certain directory (ex. media/com&#95;hikashop/import)? We could then create as many smaller .CSV files to be processed by cron and it would process them quicker than the 14-16MB files we have now for each category of products.  Thanks.")*

Hi,

If you're a developer, you sure can adapt the plugin to work like that. The issue is that you need a way to remember which file you processed and when so you would have to store that in the plugin options somehow. But that is totally possible.
If you're not a developer, I would recommend to find one to help you with that. It should be quite easy for him to do it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NjQ5MDYtY3N2LWltcG9ydC1zaXplLWxpbWl0YXRpb25zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[listsubscriber](/forum/user/16705-listsubscriber "View listsubscriber's Profile")**
- [![listsubscriber's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/16705-listsubscriber "View listsubscriber's Profile") Topic Author
- [ Offline](/forum/user/16705-listsubscriber)

Less More

- Posts: 31
- Thank you received: 0
-
-

12 years 10 months ago [\#139416](#139416) by [listsubscriber](/forum/user/16705-listsubscriber "View listsubscriber's Profile")  Replied by *[listsubscriber](/forum/user/16705-listsubscriber "View listsubscriber's Profile")* on topic *[CSV Import Size Limitations](/forum/37-import-export-csv-xls/864906-csv-import-size-limitations#139416 "-- url of the page with the problem -- : drc144k.com/ -- HikaShop version -- : 2.2.2 -- Joomla version -- : Tried on 2.5.14 - 2.5.16 -- PHP version -- : Tried on 5.2.x thru 5.4.x ... same problem. -- Browser(s) name and version -- : Firefox, Chrome, Opera -- Error-message(debug-mod must be tuned on) -- : PHP Fatal -Allowed memory size of 536870912 bytes exhausted or eventually execution time of 600 seconds exceeded.  We are using the CSV import feature thru cron and we are currently at 40,000 products/variants. We either run into the timeout or the memory issue eventually.  We duplicated the Google Products plugin for each product type we have (t-shirt, jacket, cup, etc) so we could make smaller CSV files. Each plugin we have duplicated and reconfigured works well with the smaller files. This also works better with the Characteristics which are named the same, but have different values. However, the files still eventually grow to being over 16MB which is causing problems. We could continue to make things work by duplicating the plugin, but there has to be a better way, maybe even something we are overlooking.  Is there a way to get the Import plugin to process all CSV files in a certain directory (ex. media/com&#95;hikashop/import)? We could then create as many smaller .CSV files to be processed by cron and it would process them quicker than the 14-16MB files we have now for each category of products.  Thanks.")*

Thanks for the reply. We just finished up code that will:
- create the csv files when the size will be over 1MB (or whatever size we set as the threshold
- automatically generates a plugin in joomla for the new csv file
- sets the cron "last run" time to a future date (this part doesn't seem to work though).

So now my questions are:
1. Does setting the cron last run date in the plugin XML do anything? It appears ALL the plugins run against the CSV files, or NONE will run. We thought setting the cron last run times at specific intervals would ensure the load on the server is never to heavy performing imports of products.

2. We are now at 1.3 million Products/Variants. The Export breaks pretty quickly with out of memory. Do you know at what number of products/variants will we see our site start to slow down? We can live without the export of the products since we can still backup our entire site with WHM/cpanel.

Thanks.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NjQ5MDYtY3N2LWltcG9ydC1zaXplLWxpbWl0YXRpb25zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

12 years 10 months ago [\#139470](#139470) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[CSV Import Size Limitations](/forum/37-import-export-csv-xls/864906-csv-import-size-limitations#139470 "-- url of the page with the problem -- : drc144k.com/ -- HikaShop version -- : 2.2.2 -- Joomla version -- : Tried on 2.5.14 - 2.5.16 -- PHP version -- : Tried on 5.2.x thru 5.4.x ... same problem. -- Browser(s) name and version -- : Firefox, Chrome, Opera -- Error-message(debug-mod must be tuned on) -- : PHP Fatal -Allowed memory size of 536870912 bytes exhausted or eventually execution time of 600 seconds exceeded.  We are using the CSV import feature thru cron and we are currently at 40,000 products/variants. We either run into the timeout or the memory issue eventually.  We duplicated the Google Products plugin for each product type we have (t-shirt, jacket, cup, etc) so we could make smaller CSV files. Each plugin we have duplicated and reconfigured works well with the smaller files. This also works better with the Characteristics which are named the same, but have different values. However, the files still eventually grow to being over 16MB which is causing problems. We could continue to make things work by duplicating the plugin, but there has to be a better way, maybe even something we are overlooking.  Is there a way to get the Import plugin to process all CSV files in a certain directory (ex. media/com&#95;hikashop/import)? We could then create as many smaller .CSV files to be processed by cron and it would process them quicker than the 14-16MB files we have now for each category of products.  Thanks.")*

1. The parameter in the xml itself is for joomla to display the interface and the value is saved in the database. Then, each time the plugin runs, it updates that value in the database so that if he is triggered in between, it knows that it shouldn't run yet.

2. Yes, that's normal, the whole data is loaded up in memory in order to generate the CSV so it requires a lot of memory if you have a lot of products.
Regarding the slowdown, you're close to the maximum that we tested HikaShop with. The slowdown will depend on your server. I know that someone is using HikaShop with 3 millions products/variants on his server so it should be possible to go that up without too much issues, but then you might need a bigger server/or better update the database based on your use of HikaShop functions.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM3LWltcG9ydC1leHBvcnQtY3N2LXhscy84NjQ5MDYtY3N2LWltcG9ydC1zaXplLWxpbWl0YXRpb25zP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.053 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
