![]() | Closure table real implementation |
|
21 Apr 2012, 03:08
Jorge Zapata (1 post) |
Hi Bill, I read the “Naive tree” chapter of your book and found very interesting the closure table approach, however I haven’t found a real implementation of this pattern on the web. |
|
21 Jun 2012, 17:22
Bill Karwin (19 posts) |
I implemented closure table for a Perl application in 2002, and it worked, but the depth never went very deep. I tested closure table for a PHP demo with a tree of about 500K nodes. Here’s a webinar in which I demo it: It’s very important to have the right indexes for the types of queries you run. I ended up with several multi-column indexes, with columns in different orders. So remember to MENTOR your indexes! |
| You must be logged in to comment |

