nested-sets
Rails3: Avoiding select n+1 with the Ancestry Gem?
Requirements: I am building a task list application and wanted tasks to be able to have sub-tasks. I also wanted tasks to be able to exist in multiple places in the tree at once, for example, if I ha[详细]
2023-03-25 08:08 分类:问答MySQL update an item of a nested set
I have a table in my database which conains a nested set of items, with significant columns being id and parent. parent always points to the row id it is nested within.[详细]
2023-03-24 02:41 分类:问答Populate table nested set Doctrine 1.2
I\'m trying to populate a table set with more root Locations nested three levels: Region, Province and City.[详细]
2023-03-22 19:15 分类:问答Multiple Trees with Hierarchical Data (Left and Right values)
What issues are associated with maintaining multiple tress within a single table? The motivation for having multiple trees is to avoid excessive updates to all nodes when inserting a node at the star[详细]
2023-03-14 20:46 分类:问答Using awesome_nested_set dynamically adding extra children
I\'ve got a nested model called categories and I have created a nested form to allow creation of a category and sub categories in one form.[详细]
2023-03-14 16:32 分类:问答MySQL Nested Sets Searching
I\'m really struggling with a nested set query in our PHP/MySQL driven shop, I\'ll use electronics parts as an example.[详细]
2023-03-12 16:33 分类:问答Using awesome_nested_set in a nested form
I\'m using Rails 3.0.7 with awesome_nested_set and I\'m trying to create a nested form which will allow me to enter a category and sub categories all in one create form.[详细]
2023-03-11 05:25 分类:问答Nested Set Model Maintenance
I am currently developing a comment system for a website that I am working on.I did a lot of research and decided to use the nested set model to store my comments.I have created procedures to add and[详细]
2023-03-11 04:56 分类:问答Showing users in tree structure?
I have a database table called users This table has two columns (that are important) uuid, and parentUuid[详细]
2023-03-11 04:37 分类:问答ZF_DB: how to make simple select for two or more tables without join?
Example: SELECT `cat`.`id_catalog`, COUNT(parent.id_catalog) - 1) AS `level` FROM `tbl_catalog` AS `cat`, `tbl_catalog` AS `parent` WHERE (cat.`left` BETWEEN parent.`left` AND parent.`right`) GROUP B[详细]
2023-03-09 18:55 分类:问答