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..
Hello, improving the import speed we want to temporary deactivate the events using the EventBehavio
Hello,
improving the import speed we want to temporary deactivate the events using the EventBehaviourConfig:disable() like done on demo data import from spryker and call it after the import once … however, it seems there are events on event/publish queue anyway despite the eventbehaviour is deactivated. Having a closer look it seems that there are implicit calls of the (legacy?) touch facade like for the avalability module when updating the availibility via facade.
Is there a way to also deactivate the touch facade to not produce events?
Best
Comments
-
The cause seems no to be the touch facade … but within the AvailabilityHandler the
saveAndTouchAvailability() methods$this->eventFacade->trigger(
AvailabilityEvents::AVAILABILITY_NOTIFICATION,
$availabilityNotificationDataTransfer
);Seems to bypass the EventBehaviourEventConfig that actually says disableEvent() were i expect, no event is fired … do i miss something?🤔
0 -
Seems its the nature of itself … deactivating the event behaviour only applies to events generated on propel level … but it seems that some (or almost every) facade has somewhere an explicit call to eventfacade which will trigger the event no matter what config in EventBahviourConfig is set. I guess there is no chance except switching to propel level instead of using facades to insert data
0 -
Yes, facades should be avoided in imports when writing data. Unless that specific facade method does plain writing, but thats a pretty rare case.
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random