What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

☝ ☝

2»

Comments

  • Ehsan Zanjani
    Ehsan Zanjani Head of Solution Architecture @ Spryker Posts: 113 🧑🏻‍🚀 - Cadet
    edited September 2019

    Hi Lucian, The touch module is part of LTS module which we need to support it, but this doesn’t mean that we don’t need to adjust it to the newer version of Spryker B2C\B2B, we are currently investigating this interference of the versions. I can share some quick workarounds for you to regain the lost performance.

    About Touch issues
    You can easily overwrite the logic of saveTouchRecord() in project level to get rid of the insert\update queries:
    Spryker/Zed/Touch/Business/Model/TouchRecord.php:60

  • Ehsan Zanjani
    Ehsan Zanjani Head of Solution Architecture @ Spryker Posts: 113 🧑🏻‍🚀 - Cadet
    edited September 2019

    About too many events
    when you are creating/updating too many categories via API, you can disable propel events and trigger Publish events for categories manually like DataImport process.
    This is recommended when you are inserting lots of data into the Spryker DB.

    Please have a look at this
    vendor/spryker/event-behavior/src/Spryker/Zed/EventBehavior/EventBehaviorConfig.php:50

  • UK7TM6CQJ
    UK7TM6CQJ Posts: 123 🧑🏻‍🚀 - Cadet

    hi, we update categories one by one. we need to trigger the events so that products are updated (because of urls which contains category)

  • UK7TM6CQJ
    UK7TM6CQJ Posts: 123 🧑🏻‍🚀 - Cadet

    the touch behavior we did not notice before, I thought updates happen through events triggering only, not through this touch functionality

  • Ehsan Zanjani
    Ehsan Zanjani Head of Solution Architecture @ Spryker Posts: 113 🧑🏻‍🚀 - Cadet

    we update categories one by one.

    you can update them with bulk operation and use $eventFacade->triggerBulk(ProductAbstractPublish, $eventEntityTransfers)
    this is a way faster

  • Ehsan Zanjani
    Ehsan Zanjani Head of Solution Architecture @ Spryker Posts: 113 🧑🏻‍🚀 - Cadet

    Usually touches have a very small interaction with databases and should not have any affects on performance but anyhow you can disable it in project as I described above