If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Zen Cart Code Suggestions / Preorder Tree Traversal implementation for heirarchical data

Preorder Tree Traversal implementation for heirarchical data

Locked

Started by juneym on 26 May 2006, 10:22 AM · Views: 2,079

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
26 May 2006, 10:22 AM
#1
juneym avatar

juneym

New Zenner

Join Date:
Aug 2004
Posts:
52
Plugin Contributions:
0

Post #1 by juneym

Hello developers and mods,

Please forgive me if this posts doesn't fit in this category. Please remove if out of topic.

I would just like to inquire if there is any plan of implementing Preorder Tree Traversal for hierarchical data? I believe this is much much faster for simultaneous lookup of categories/subcategories. Yes, adding item to a node or moving item(ie. category) can take a hit on the database due to re-ordering of indexes(left,right) it would mean faster retrieval for multiple queries. No need to use recursive function call just to get categories and subcategories hierarchy.

Just a question/suggestion.

26 May 2006, 9:55 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

Yes, there are plans for the near future to implement MPTT, as this will provide significant performance gains, in addition to a number of refactored product-info retrieval functions.

... stay tuned !

(See the posted Roadmap for more information on related plans)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.