Compound Query?
Up until now my experience with Coldfusion has been simple queries that I return to Flash. I have a project where I get "designs" from the database and each design has a string of "design_items" that make up the design. So a design result would look like this:
result[0].id = 1
result[0].category = 52
result[0].items = "2,6,8,9"
Then I use the items result to get the details of each piece of the design. Each design_item has 30 plus bits of info it returns. So as you can see not efficient at all. I sometimes make 200 calls to coldfusion to just build a few designs to display to the user. How can I do this:
Get the designs based on the category.
Make the list of items into an array or something that I can cycle through and get the design_items info for?
So my result would look something like this
result[0].id = 1
result[0].cateogry = 52
result[0][0].items = design_item_id = 2
design_item_name = "text"...
result[0][1].items = design_item_id = 6
design_item_name = "graphic47"
I would like to cut down my calls to coldfusion to one. I just don't know how to really start.
Thanks!