Question about product import via csv

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Dochr
Posts: 8
Joined: 03 Nov 2021, 17:18

Question about product import via csv

Post by Dochr » 25 Jan 2022, 20:12

Laravel version: 8.80
Aimeos version: 2021.10
PHP version: 8.0.8

I have a question about https://aimeos.org/docs/latest/cronjobs ... sv-import/.
  1. Is it possible to configure the import to be idempotent? In other words: if a user will import the same file twice, it’ll update database only once.
  2. Is the following behaviour achievable?:
    If from a file 99% is already imported and not modified, only remaining 1% will be added to database and nothing from 99% will be update.
  3. Changes from already imported rows are detected and in such case products are updated.

User avatar
aimeos
Administrator
Posts: 7923
Joined: 01 Jan 1970, 00:00

Re: Question about product import via csv

Post by aimeos » 26 Jan 2022, 16:51

We already try to minimize database writes during import and store only changes if possible.
You should also configure a backup file pattern so files can be moved to another directory to avoid importing the same file multiple times:
https://aimeos.org/docs/2021.x/config/c ... rt/#backup
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply