Clarification on Parent data hierarchy in "spy_category_node_storage"
Hello everyone!
I have a question about the expected behaviour of the "spy_category_node_storage" table regarding parent hierarchy data.
For example if I have:
Category ID 1 (parent of Category ID 2)
Category ID 2 (parent of Category ID 3)
After running publish & sync, the "data" column in "spy_category_node_storage" includes all parent categories in the hierarchy (e.g., for Category ID 3, it shows both Category ID 2 and Category ID 1)
This results in a large amount of extra data for extensive category trees. In my testing, it seems unnecessary to include all parent levels in the "data". The first-level parent and child categories appear sufficient for functionality.
Is this behavior (storing all parent levels in the "data" column) expected, and if so, what is its purpose? Would it be safe to optimize the data to only include first-level parents and children?
Thank you in advance for any input you could provide!
Answers
-
I'm not sure what you are trying to achieve, thus asking for more details.
In general, we store in storage all entries we may use in the frontend, see this method:
Anther option (although not adressing the table) is removal of the sync queues, which comes with the latest release:
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 78 Spryker News
- 935 Developer Corner
- 793 Spryker Development
- 90 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
- 33 Product & Business Questions
- 69 Spryker Safari Questions
- 50 Random