<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community : All Content - All Communities</title>
    <link>https://forums.adobe.com/</link>
    <description>All Content in Adobe Community</description>
    <language>en</language>
    <pubDate>Thu, 06 Nov 2014 17:36:54 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-11-06T17:36:54Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Best Practices Question In Regards to Instancing Multiple CFCs That Need to Talk to Each Other</title>
      <link>https://forums.adobe.com/thread/1628649</link>
      <description>&lt;!-- [DocumentBodyStart:eee2a9ce-fd76-4b12-9213-02d11e46afd7] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hello CF Fans,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have a &amp;#8220;best-practices&amp;rdquo; question in regards to how you recommend instancing CFCs that all need to talk to each other in a given project.&lt;/p&gt;&lt;p&gt;Let&amp;#8217;s say for example you have a web application that has a bunch of different modules in it:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Online Calendar&lt;/li&gt;&lt;li&gt;Online Store&lt;/li&gt;&lt;li&gt;Blog&lt;/li&gt;&lt;li&gt;File Manager (uploading/downloading/processing files)&lt;/li&gt;&lt;li&gt;User Accounts&lt;/li&gt;&lt;/ol&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Each of these modules is nicely organized so that the functions that pertain to each module are contained within separate CFC files:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Calendar.cfc&lt;/li&gt;&lt;li&gt;Store.cfc&lt;/li&gt;&lt;li&gt;Blog.cfc&lt;/li&gt;&lt;li&gt;Files.cfc&lt;/li&gt;&lt;li&gt;Users.cfc&lt;/li&gt;&lt;/ol&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Each CFC contains functions appropriate for that particular module. For example, the Users.cfc contains functions pertaining to logging users on/off, updating account info etc&amp;hellip;&lt;/p&gt;&lt;p&gt;Sometimes a CFC might need to reference a function in another CFC, for example, if the store (Store.cfc) needs to get information from a customer (Users.cfc).&amp;nbsp; There are a couple ways that I&amp;#8217;ve been playing with accomplishing this:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Within a CFC, instance the other CFC&amp;#8217;s that you&amp;#8217;re going to need:&lt;/li&gt;&lt;/ol&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #ff6600;"&gt;&amp;lt;!--- Store.cfc ---&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: #ff6600;"&gt; &amp;lt;cfcomponent&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #ff6600;"&gt;&amp;lt;!--- instance all the CFC&amp;#8217;s we will need here ---&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: #ff6600;"&gt; &amp;lt;cfset usersCFC = CreateObject(&amp;#8220;component&amp;rdquo;,&amp;rdquo;users&amp;rdquo;) /&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: #ff6600;"&gt; &amp;lt;cfset filesCFC = CreateObject(&amp;#8220;component&amp;rdquo;,&amp;rdquo;files&amp;rdquo;) /&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #ff6600;"&gt;&amp;lt;cffunction name=&amp;rdquo;storeAction&amp;rdquo;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&lt;span style="color: #ff6600;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset var customerInfo = usersCFC.getUser(1) /&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This approach seems to work for the most part unless some of the instanced CFC&amp;#8217;s also instance the CFC&amp;#8217;s that instance them.&amp;nbsp; For example: If Users.cfc instances Files.cfc and Files.cfc also instances Users.cfc. I&amp;#8217;ve run into problems with occasional dreaded NULL NULL errors with this probably because of some type of infinite recursion issue.&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size: 10pt; line-height: 1.5em;"&gt;2. Another way I&amp;#8217;ve tried to approach this is to instance any needed CFCs inside a CFC&amp;#8217;s function scope (this seems to prevent the recursion issues):&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt; &lt;span style="color: #ff6600;"&gt;&amp;lt;!--- Store.cfc ---&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: #ff6600;"&gt; &amp;lt;cfcomponent&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #ff6600;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cffunction name=&amp;rdquo;storeAction&amp;rdquo;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #ff6600;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--- create a struct to keep all this function&amp;#8217;s variables ---&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: #ff6600;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset var local = structNew() /&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&lt;span style="color: #ff6600;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--- instance all the CFC&amp;#8217;s we will need here ---&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: #ff6600;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset local.usersCFC = CreateObject(&amp;#8220;component&amp;rdquo;,&amp;rdquo;users&amp;rdquo;) /&amp;gt;&lt;/span&gt;&lt;br/&gt;&lt;span style="color: #ff6600;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset local.filesCFC = CreateObject(&amp;#8220;component&amp;rdquo;,&amp;rdquo;files&amp;rdquo;) /&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&lt;span style="color: #ff6600;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset var customerInfo = local.usersCFC.getUser(1) /&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;My concern with this approach is that it may not be as efficient because you wind up instancing the same CFC&amp;#8217;s multiple times for each function that needs it but it does solve the problem of recursion by isolating the CFCs to their respective functions.&lt;br/&gt; &lt;br/&gt; One thing I thought of, based on some things I&amp;#8217;ve seen online and articles on object oriented programming, is taking advantage of a &amp;#8220;Base.cfc&amp;rdquo; which uses the &amp;#8220;extends&amp;rdquo; property to instance all of the CFC&amp;#8217;s in the application.&amp;nbsp; However, I&amp;#8217;ve never tested this type of setup before and I&amp;#8217;m not sure if this is the ideal way to allow all my CFC&amp;#8217;s to talk to each other especially since I believe using extends overwrites functions if any of them share a common function name (e.g. &amp;#8220;init()&amp;rdquo;).&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&lt;span style="color: #ff6600;"&gt;&amp;lt;!--- Base.cfc ---&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #ff6600;"&gt;&amp;lt;cfcomponent extends=&amp;rdquo;calendar store blog users files&amp;rdquo;&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;How do you tackle this type of setup in your own applications?&amp;nbsp; I&amp;#8217;d love to hear your thoughts!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:eee2a9ce-fd76-4b12-9213-02d11e46afd7] --&gt;&lt;img src='/beacon?t=1415920712219' /&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">coldfusion</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">cfc</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">cfcs</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">extends</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">best practices</category>
      <pubDate>Thu, 06 Nov 2014 17:36:54 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1628649</guid>
      <dc:date>2014-11-06T17:36:54Z</dc:date>
      <clearspace:dateToText>1 week 6 hours ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>ColdFusion Builder 3 Code Coloring Bug</title>
      <link>https://forums.adobe.com/thread/1585196</link>
      <description>&lt;!-- [DocumentBodyStart:b28dc271-ce8b-4949-8120-0decea6f0502] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hello CFBuilders,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I encountered what I believe is a bug within CFBuilder 3 (standalone and Eclipse plugin) where code coloring breaks after you insert a comment in a function with named arguments.&amp;nbsp; To replicate the issue copy/paste the following code in CF Builder: &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;!--- Sample Bug: Code Coloring&amp;nbsp; ---&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;cfset myFunction(&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; argument1 = "strawberries",&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; argument2 = "bananas", &amp;lt;!--- these are my favorite ---&amp;gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; argument3 = "blueberries",&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; argument4 = "pineapples"&lt;/p&gt;&lt;p&gt;) /&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;lt;cfset test = "test" /&amp;gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;a href="https://forums.adobe.com/servlet/JiveServlet/showImage/2-6763517-676433/code_coloring_bug.jpg"&gt;&lt;img alt="code_coloring_bug.jpg" class="jive-image image-1" height="213" src="https://forums.adobe.com/servlet/JiveServlet/downloadImage/2-6763517-676433/code_coloring_bug.jpg" width="468"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You should see argument3,argument4, and the closing bracket are colored incorrectly.&amp;nbsp; If you encounter the same issue and you'd like to see this fixed please feel free to vote for this bug here:&lt;br/&gt;&lt;a class="jive-link-external-small" href="https://bugbase.adobe.com/index.cfm?event=bug&amp;amp;id=3831825" rel="nofollow"&gt;Bug#3831825 - Code Coloring Breaks When Comments Used Within Function with Named Arguments&lt;/a&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;It should be noted that Dreamweaver can handle this type of code coloring situation fine.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:b28dc271-ce8b-4949-8120-0decea6f0502] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">bug</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">code_coloring</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">coldfusion_builder_3</category>
      <pubDate>Thu, 25 Sep 2014 17:00:42 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1585196</guid>
      <dc:date>2014-09-25T17:00:42Z</dc:date>
      <clearspace:dateToText>1 month 3 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>How to turn off automatic variable code suggest for a single page?</title>
      <link>https://forums.adobe.com/thread/1577658</link>
      <description>&lt;!-- [DocumentBodyStart:87788b8c-71b5-4e9b-81ea-44734c16c54a] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Does anyone know how to turn off the code assist feature where CFBuilder tries to assist you by listing all the variables on the page?&amp;nbsp; I have a CFC with over 3000 lines and it causes CFBuilder to hang/freeze like you wouldn't believe.&amp;nbsp; I'd like to turn off this feature for large files (or at least see if I can tune the feature to be smarter about what variables it suggests).&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Does anyone know how to disable this feature on a specific template or turn this feature off altogether?&amp;nbsp; Note: I do want to keep the tag attribute suggestion if possible.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:87788b8c-71b5-4e9b-81ea-44734c16c54a] --&gt;</description>
      <pubDate>Wed, 17 Sep 2014 17:40:32 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1577658</guid>
      <dc:date>2014-09-17T17:40:32Z</dc:date>
      <clearspace:dateToText>1 month 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Dynamic Implicit Structure Creation Question</title>
      <link>https://forums.adobe.com/thread/1519235</link>
      <description>&lt;!-- [DocumentBodyStart:6e77d812-d2c6-481b-8f17-b5a8810d527a] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hello,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I was curious if it was possible to dynamically create an implicit structure where you might occasionally want to omit some keys from being added to the structure?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I played around with using ternary operators in the structure creation with no luck. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #339966;"&gt;&amp;lt;cfset temp = {&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #339966;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name = "Dave",&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #339966;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (1 IS 1 ? "" : Job&amp;nbsp; =&amp;nbsp; "Superhero")&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #339966;"&gt;&amp;nbsp; } /&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The only way I can see doing this now would be to create the structure and then use StructKeyDelete on the keys I want to remove OR build structures the traditional way and cfif my way around the keys I don't want to add."&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Ex: &lt;span style="color: #339966;"&gt;&amp;lt;cfset structKeyDelete(temp,"Job") /&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;or&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #339966;"&gt;&amp;lt;cfset temp = structNew() /&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #339966;"&gt;&amp;lt;cfset temp.name = "Dave" /&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #339966;"&gt;&amp;lt;cfif 1 NEQ 1&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #339966;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset temp.job = "Superhero" /&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #339966;"&gt;&amp;lt;/cfif&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Does anyone know how to create dynamic keys in a structure while defining it implicitly? &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:6e77d812-d2c6-481b-8f17-b5a8810d527a] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">implicit</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">structures</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">ternary operators</category>
      <pubDate>Thu, 10 Jul 2014 20:00:56 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1519235</guid>
      <dc:date>2014-07-10T20:00:56Z</dc:date>
      <clearspace:dateToText>4 months 4 days ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Database Design Question: What are the consequences of using a "One Table to Rule Them All" Approach?</title>
      <link>https://forums.adobe.com/thread/1499090</link>
      <description>&lt;!-- [DocumentBodyStart:f46cc1e6-e60b-498b-992f-03cf73c7c722] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;I have a MSSQL database schema question that I&amp;#8217;d love to have the community's opinion on.&amp;nbsp; I&amp;#8217;m looking for the optimal way of storing one-to-many relationships for a variety of table combinations.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#8217;m familiar with the basic idea of relationship tables&amp;nbsp; (the green table links Table1 to Table2):&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Table1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #9bbb59;"&gt;Table1Table2&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Table1ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table2ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table1Table2ID&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table1ID&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table2ID&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What I&amp;#8217;m trying to do though is to be able to link multiple tables together using a single relationship table.&amp;nbsp; I&amp;#8217;m using my server-side code to specify which tables are being linked (green table is relationship table and the red column indicates which table is being linked to Table1):&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Table1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #9bbb59;"&gt;Table1TableX&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Table1ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table2ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table3ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table1TableXID&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table1ID&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TableXID&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #ff0000;"&gt;TableX&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In the above example, I&amp;#8217;m using the column &amp;#8220;TableX&amp;rdquo; to define which tables (Table2 or Table3) is being joined to Table1.&amp;nbsp; This brings me to my first question:&amp;nbsp; &lt;span style="color: #8064a2;"&gt;What are the consequences of doing things this way?&amp;nbsp; Am I going to encounter a serious performance hit when records get into the 1000s+ ?&amp;nbsp; I realize that I&amp;#8217;ll have to enforce table integrity on the application layer and I&amp;#8217;m okay with that aspect.&amp;nbsp; &lt;/span&gt;I've been developing my application like this for quite a while now and so far it has worked out pretty well in keeping my database structure simplified.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now I&amp;#8217;m looking to simplify things even further and create a &amp;#8220;&lt;strong&gt;&lt;em&gt;one table to rule them all&lt;/em&gt;&lt;/strong&gt;&amp;rdquo; approach.&amp;nbsp; Basically, I&amp;#8217;d like to create 1 relationship table that would control the relationships between all of my other tables.&amp;nbsp; In this method I specify in the column values which tables are being connected.&amp;nbsp; For example: (green table below is the relationship table and red tables point to the tables that are linked)&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Table1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #9bbb59;"&gt;Relationships&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;Table1ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table2ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table3ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table4ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RelationshipsID&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #ff0000;"&gt;ParentTable&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #ff0000;"&gt;ChildTable&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ParentID&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ChildID&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Am I totally crazy here? &lt;span style="color: #8064a2;"&gt;Or would a setup like this be a viable solution for linking multiple tables together in a single place?&amp;nbsp; &lt;/span&gt;So far the only consequences that I see are that my SELECT queries are a little more complex because I have to specify which tables are linked. For example, a simple joined query which looked like this:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #4bacc6;"&gt;SELECT *&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #4bacc6;"&gt;FROM Table1 t1 INNER JOIN &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #4bacc6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table1Table2 tt ON t1.Table1ID = tt.Table1ID INNER JOIN &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #4bacc6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table2 t2 ON tt.Table2ID = t2.Table2ID&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Now becomes:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #4bacc6;"&gt;SELECT *&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #4bacc6;"&gt;FROM Table1 t1 INNER JOIN&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #4bacc6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SELECT ParentID, ChildID &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #4bacc6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM Relationships&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #4bacc6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE ParentTable = &amp;lsquo;Table1&amp;#8217;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #4bacc6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND ChildTable = &amp;lsquo;Table2&amp;#8217;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left: .5in;"&gt;&lt;span style="color: #4bacc6;"&gt;) tt ON t1.ParentID = t1.Table1ID INNER JOIN&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-left: .5in;"&gt;&lt;span style="color: #4bacc6;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Table2 t2 ON tt.ChildID = t2.Table2ID&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So aside from having my queries be a little more complex, the database structure looks a lot cleaner when it&amp;#8217;s all diagramed out.&amp;nbsp; Do you think this is a bad idea to develop a database this way? If so, why?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks for taking the time to check this out&amp;hellip; I&amp;#8217;d be curious to know your thoughts.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:f46cc1e6-e60b-498b-992f-03cf73c7c722] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">mssql</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">coldfusion</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">database schema</category>
      <pubDate>Wed, 18 Jun 2014 01:06:05 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1499090</guid>
      <dc:date>2014-06-18T01:06:05Z</dc:date>
      <clearspace:dateToText>4 months 4 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Getting Started with CFBuilder - A Question About Project Settings</title>
      <link>https://forums.adobe.com/thread/1458866</link>
      <description>&lt;!-- [DocumentBodyStart:724524c7-5e43-491b-85fe-0943b00a9c35] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hello All,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I'm just getting my feet wet with CFBuilder and giving it a spin after over a decade's worth of experience with Dreamweaver and I have a question about setting up my work environment.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;First of all, I have two computers that I mainly work from.&amp;nbsp; My home desktop computer, and a laptop for when I'm on the road.&amp;nbsp; I keep all of my web site project files syncronized between the two computers using Dropbox. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span&gt;I've noticed that when I create a new project in CFBuilder it stores a few files in my project root like ".project" and "settings.xml".&amp;nbsp; It looks like "settings.xml" stores information about which CFBuilder web server should be used for the project.&amp;nbsp; Unfortunately this messes things up for me a bit because on my desktop a web site project url might be:&amp;nbsp; &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://desktop/myProject/" rel="nofollow" target="_blank"&gt;http://desktop/myProject/&lt;/a&gt;&lt;span&gt; and on my laptop the project url could be &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://laptop/myProject" rel="nofollow" target="_blank"&gt;http://laptop/myProject&lt;/a&gt;&lt;span&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The reason this isn't a problem in Dreamweaver is because dreamwevaer stores its configuration/preferences outside of my project folders so I can essentially define any testing server I want for both the desktop and laptop.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Is there a way to configure CFBuilder to store project settings outside of the project folder?&amp;nbsp; Or does anyone have a suggestion for someone like me who syncronizes their project files from their laptop to their desktop?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in advance for helping out a CFBuilder noob. &lt;span aria-label="Happy" class="emoticon-inline emoticon_happy" style="height:16px;width:16px;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:724524c7-5e43-491b-85fe-0943b00a9c35] --&gt;</description>
      <pubDate>Fri, 25 Apr 2014 03:29:14 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1458866</guid>
      <dc:date>2014-04-25T03:29:14Z</dc:date>
      <clearspace:dateToText>6 months 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Strange Behavior When Working with Nested Query Objects</title>
      <link>https://forums.adobe.com/thread/1405329</link>
      <description>&lt;!-- [DocumentBodyStart:3cb3ea59-cb02-489a-be06-212cac46a168] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;&lt;em&gt;I just posted a comment over on Ben Nadel's site about this issue but I wanted to get some feedback from my fellow ColdFusion developers to see if anyone else has ever experienced this issue:&lt;/em&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have a function within a CFC that creates a query object and then nests another query object inside it (masterQuery &amp;gt; subQuery). The CFC returns the query object and to make things easier I loop through the query columns and bring everything into the local VARIABLES scope using the following format: "#a#" = masterQuery["#a#"] where "a" is the name of the query column.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;After I had all of the query columns in the VARIABLES scope I tried to run a QofQ on the subQuery and low and behold I got an error message:&lt;/p&gt;&lt;p&gt;"coldfusion.sql.QueryColumn cannot be cast to coldfusion.sql.QueryTable"&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;However, when I tried a different method for bringing the masterQuery columns to the VARIABLES scope, I was able to get it to work: "#a#" = evaluate('masterQuery.#a#')&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;After doing some playing around using GetMetaData().getName() to determine what ColdFusion was seeing when a variable was set using masterQuery["#a#"] vs evaluate('masterQuery.#a#') I learned that ColdFusion continues to see the variable as a type: "QueryColumn" instead of its actual type (string, query, array, struct, etc...).&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Currently the only way I can get CF to recognize the proper type is to use the evaluate() function.&amp;nbsp; What's even more annoying is that you can't reference columns in the nested query so masterQuery.subQuery.TestColumn1[2] produces an error message.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I wonder if this a bug within ColdFusion 10. I haven't tested it in any earlier versions and after extensive searching I couldn't find anyone else with a similar problem. Regardless I thought it was pretty interesting and noteworthy.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If you want to see some sample code to generate this error for yourself, here it is: &lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="http://pastebin.com/pBkjUtxc" rel="nofollow" target="_blank"&gt;http://pastebin.com/pBkjUtxc&lt;/a&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;&lt;!--[CodeBlockStart:f68734fd-6342-4ea1-936f-2cfb831e7527]--&gt;&lt;span&gt;&lt;/span&gt;&lt;!--[CodeBlockEnd:f68734fd-6342-4ea1-936f-2cfb831e7527]--&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Message was edited by: Henweigh99&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:3cb3ea59-cb02-489a-be06-212cac46a168] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">query</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">objects</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">nested</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">queryofqueries</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">qofq</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">coldfusion.sql.querycolumn</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">coldfusion.sql.querytable</category>
      <pubDate>Thu, 13 Feb 2014 01:57:17 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1405329</guid>
      <dc:date>2014-02-13T01:57:17Z</dc:date>
      <clearspace:dateToText>8 months 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Are there any negative consequences to instancing a CFC from within another CFC? (i.e. nested CFCs)</title>
      <link>https://forums.adobe.com/thread/1266591</link>
      <description>&lt;!-- [DocumentBodyStart:fb9ebcbd-7604-4197-8c65-8a4714b5c36d] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hello CF Superheroes,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I'm playing around with CFCs and I've run into a situation where I would like to start calling methods from some CFCs from within another CFC (nesting).&amp;nbsp; My first instinct was to simply instance the CFCs from within the parent level CFC but I'm not sure ColdFusion would like it if I nest CFCs like that. I've read about some people getting the dreaded "null null" error at times.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I'm aware of the "extends" property from within the &amp;lt;cfcomponent&amp;gt; tag but the problem is that you wind up having to instance all of the extended CFCs in the calling CFM template anyway.&amp;nbsp; It seems like it would just be easier to call the CFCs from within the CFCs that need to be "extended".&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;For example,&amp;nbsp; here's what I'm thinking of doing:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In my main template &lt;strong&gt;index.cfm&lt;/strong&gt;:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #0000ff;"&gt;&amp;lt;cfobject component="MasterCFC" name="cfcs.master"&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #0000ff;"&gt;&amp;lt;cfset temp = masterCFC.myFunction()&amp;gt;&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Then within &lt;strong&gt;master.cfc&lt;/strong&gt;:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #0000ff;"&gt;&amp;lt;cfcomponent&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;&lt;span style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--- get my sub cfc ---&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfobject component="SubCFC" name="sub"&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cffunction...&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #0000ff;"&gt;&amp;lt;/cfcomponent&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Otherwise &lt;/strong&gt;&lt;em&gt;(as I understand it)&lt;/em&gt; if you wanted to use the "extends" property you would have to do it like this:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In my main template &lt;strong&gt;index.cfm&lt;/strong&gt;:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #339966;"&gt;&amp;lt;cfobject component="MasterCFC" name="cfcs.master"&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #339966;"&gt;&amp;lt;cfobject component="SubCFC" name="cfcs.sub"&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #339966;"&gt;&amp;lt;cfset temp = subCFC.functionFromMaster()&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Then within &lt;strong&gt;sub.cfc&lt;/strong&gt;:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #339966;"&gt;&amp;lt;cfcomponent extends="master"&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #339966;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cffunction...&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #339966;"&gt;&amp;lt;/cfcomponent&amp;gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I'd love to hear your thoughts on how you nest CFCs or "extend" them efficiently.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Dave&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:fb9ebcbd-7604-4197-8c65-8a4714b5c36d] --&gt;</description>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">cfc</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">nesting</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">best_practices</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">cfcomponent</category>
      <category domain="https://forums.adobe.com/tags#/?containerType=14&amp;container=1">cfcs</category>
      <pubDate>Wed, 31 Jul 2013 16:57:38 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1266591</guid>
      <dc:date>2013-07-31T16:57:38Z</dc:date>
      <clearspace:dateToText>1 year 3 months ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Performance hit from loading many variables on each request</title>
      <link>https://forums.adobe.com/thread/469732</link>
      <description>&lt;!-- [DocumentBodyStart:4723a99a-ff65-4a42-b587-6c427d8e7001] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 12pt;"&gt;&lt;span style="color: #000000;"&gt;&lt;span style="font-family: Calibri;"&gt;Hello fellow CFheads,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 12pt;"&gt;&lt;span style="color: #000000;"&gt;&lt;span style="font-family: Calibri;"&gt;My web application is customized for each of my clients based on a preferences file that gets called at the beginning of each page via Application.cfm.&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;The file is basically just a &amp;lt;cfscript&amp;gt; containing a list of variable names/values that sets various settings, values, and switches features on or off.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="min-height: 8pt; padding: 0px; margin: 0in 0in 0pt;"&gt;&lt;span style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt; &lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 12pt;"&gt;&lt;span style="color: #000000;"&gt;&lt;span style="font-family: Calibri;"&gt;For example:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="min-height: 8pt; padding: 0px; margin: 0in 0in 0pt;"&gt;&lt;span style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt; &lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 12pt;"&gt;&lt;span style="color: #000000;"&gt;&lt;span style="font-family: Calibri;"&gt;Sitename = &amp;#8220;my web site&amp;rdquo;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 12pt;"&gt;&lt;span style="color: #000000;"&gt;&lt;span style="font-family: Calibri;"&gt;ActivateCalendar = &amp;#8220;yes&amp;rdquo;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 12pt;"&gt;&lt;span style="color: #000000;"&gt;&lt;span style="font-family: Calibri;"&gt;ActivateOnlineStore = &amp;#8220;no&amp;rdquo;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 12pt;"&gt;&lt;span style="color: #000000;"&gt;&lt;span style="font-family: Calibri;"&gt;Etc&amp;hellip;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="min-height: 8pt; padding: 0px; margin: 0in 0in 0pt;"&gt;&lt;span style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt; &lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 12pt;"&gt;&lt;span style="color: #000000;"&gt;&lt;span style="font-family: Calibri;"&gt;Currently there are about 250 preferences variables that get loaded with each request and I&amp;#8217;m wondering at what point I should be concerned with performance issues with loading so many variables (100? 500? 1000?).&lt;span style="mso-spacerun: yes;"&gt;&amp;nbsp; &lt;/span&gt;Do you think this is something I should be concerned about or do you think loading a list of variables would take such a small performance hit that I shouldn&amp;#8217;t be concerned at all?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="min-height: 8pt; padding: 0px; margin: 0in 0in 0pt;"&gt;&lt;span style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="MsoNormal" style="margin: 0in 0in 0pt;"&gt;&lt;span style="font-family: Calibri; color: #000000; font-size: 12pt;"&gt;Curious to hear your thoughts and feedback.&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="min-height: 8pt; padding: 0px; margin: 0in 0in 0pt;"&gt;&lt;span style="font-size: 12pt;"&gt;&lt;span style="color: #000000;"&gt;&lt;span style="font-family: Calibri;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:4723a99a-ff65-4a42-b587-6c427d8e7001] --&gt;</description>
      <pubDate>Wed, 29 Jul 2009 20:26:59 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/469732</guid>
      <dc:date>2009-07-29T20:26:59Z</dc:date>
      <clearspace:dateToText>5 years 3 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Is it possible to call CF functions dymanically?</title>
      <link>https://forums.adobe.com/thread/226857</link>
      <description>&lt;!-- [DocumentBodyStart:edb1e73f-d3ac-4a54-9e52-ad267cb4c361] --&gt;&lt;div class="jive-rendered-content"&gt;Is it possible to call a ColdFusion function dynamically? For
example you might have a date variable: myDate that you want to
apply a ColdFusion date function to. However, the function itself
needs to be dynamic because you might want to call "dateFormat",
"timeFormat", "dateAdd", etc.
&lt;br/&gt;
&lt;br/&gt;Is there a way to evaluate an expression like this?
&lt;br/&gt;
&lt;br/&gt;&amp;lt;!-- defined the function to call and encapsulate the
dynamic variable name with brackets --&amp;gt;
&lt;br/&gt;&amp;lt;cfset functionToCall =
"DateFormat([myVariable],'MM/DD/YYYY')"&amp;gt;
&lt;br/&gt;&amp;lt;cfset myDate = CreateODBCDate('03/19/1977')&amp;gt;
&lt;br/&gt;
&lt;br/&gt;&amp;lt;!-- now replace the bracketed name with the actual
variable data (myDate) --&amp;gt;
&lt;br/&gt;&amp;lt;cfset fullString =
ReplaceNoCase(functionToCall,'[myVariable]','#myDate#','ALL')&amp;gt;
&lt;br/&gt;
&lt;br/&gt;&amp;lt;!-- display the output --&amp;gt;
&lt;br/&gt;&amp;lt;cfoutput&amp;gt;
&lt;br/&gt;#evaluate(fullString )#
&lt;br/&gt;&amp;lt;/cfoutput&amp;gt;
&lt;br/&gt;
&lt;br/&gt;What I get here is an error message because there are invalid
characters in "fullString". When I simply cfoutput fullString the
text it produces looks perfect, its just that I need to find a way
to evaluate it.
&lt;br/&gt;
&lt;br/&gt;Any ideas?
&lt;br/&gt;
&lt;br/&gt;Thanks for taking the time to help.&lt;/div&gt;&lt;!-- [DocumentBodyEnd:edb1e73f-d3ac-4a54-9e52-ad267cb4c361] --&gt;</description>
      <pubDate>Wed, 15 Oct 2008 08:49:25 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/226857</guid>
      <dc:date>2008-10-15T08:49:25Z</dc:date>
      <clearspace:dateToText>6 years 1 month ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Optimization and Best Practices: User Goup Permissions</title>
      <link>https://forums.adobe.com/thread/93154</link>
      <description>&lt;!-- [DocumentBodyStart:555c1d7b-3250-463e-805b-81e213f60737] --&gt;&lt;div class="jive-rendered-content"&gt;Hello All,
&lt;br/&gt;
&lt;br/&gt;Recently I have done some soul searching on the best way to
allow for complex user permissions on a web site while keeping
server resources in mind. I am hoping that some of you will have
some ideas or suggestions on the best way to implement a system
like this using CF. First a little background:
&lt;br/&gt;
&lt;br/&gt;In my CF application I assign user accounts to a permission
group so different users can access different pages. For example, I
can assign user 'Joe Bob' to the 'Administrators' group which can
access pretty much everything, whereas the user 'Jane Smith' has
been assigned to the 'Contributors' group and can only access
certain pages.
&lt;br/&gt;
&lt;br/&gt;Initially I assigned the permissions based on the name of the
permissions group, so when the user logged on I created a session
variable called AccountType which would contain the value,
"Administrator", "Contributor", etc. That way, my templates could
run a simple cfif to check if the person could see a particular
resource,link,etc.
&lt;br/&gt;
&lt;br/&gt;However, now I am expanding the permissions scheme to allow
site administrators to create their own user groups with their own
unique names and permissions settings. The user account types are
stored in a database and each separate permission is stored as a
yes/no variable in a column. For example:
&lt;br/&gt;
&lt;br/&gt;UserTypeID......Name
..............CanLogIn........CanAccessProducts......CanAccessBlog.......etc...
&lt;br/&gt;------------------------------------------------------------------------------------------ -----------------------------------------------
&lt;br/&gt;1
...................Administrator.....yes................yes.............................. .yes
&lt;br/&gt;2 ...................Contributor
.........yes...............no................................yes
&lt;br/&gt;3....................Store
Manager.....yes...............yes..............................no
&lt;br/&gt;
&lt;br/&gt;So the problem arises: How should these permission settings
be applied for the logged in users? I want to be conscious of both
server memory as well processing/requests to the DB and ease of
coding. Here are some ideas that I had:
&lt;br/&gt;
&lt;br/&gt;IDEA 1: When the user logs on, do just as I was doing and
assign a session variable named UserType that stores the
UserTypeID. Then, within application.cfm, check if the user is
logged on, if yes, query the database (cached query) and get the
permission values for that account type and store them in a
structure which can be referenced as needed in that request.
&lt;br/&gt;
&lt;br/&gt;Pros: In this method, the work appears to mostly be done by
the processor, db server. Since queries can be cached, I can use
the same cached query for multiple users that log into the site so
more than one user can share the cached query.
&lt;br/&gt;
&lt;br/&gt;Cons: I think that reading a cached query and then building a
structure containing the values of the table on ever page load
might be overkill and might demand unneeded processing.
&lt;br/&gt;
&lt;br/&gt;IDEA 2. This method is similar to #1 in that a session
variable named UserType will be created when the user logs on.
However the main difference is that the database won't be queried
for a permission column until it is actually needed. So if the user
tries to access page xyz.cfm, coldfusion checks the appropriate
column in the table based on the UserType variable and either
allows the user to see it or not.
&lt;br/&gt;
&lt;br/&gt;Pros: This could potentially save some server memory if there
are a lot of users logged on at once and a lot of permission
columns in the database.
&lt;br/&gt;
&lt;br/&gt;Cons: This could be a coding nightmare and will add a lot
more lines of code on many templates since pretty much every
template will make at least one permissions check.
&lt;br/&gt;
&lt;br/&gt;IDEA 3: Another method which might work would be when a user
logs on, query the appropriate permissions records and store all of
the yes/no columns as a structure in the session scope. On each
page load (application.cfm), copy the structure stored in the
session scope which contains all of the permissions to the local
variable scope so it can be easily accessed by the page.
&lt;br/&gt;
&lt;br/&gt;Pros: Using this method, I only have to query the permissions
once, and then access all the variables I need because they will be
stored in memory.
&lt;br/&gt;
&lt;br/&gt;Cons: In the event that there are a LOT of permission
variables (assuming 100 or so) this could cause each logged in user
session to hold a lot of variables. I'm not sure how much server
memory a structure containing 100 values is, but I want to keep
that in mind so I don't hog too many resources unnecessarily.
&lt;br/&gt;
&lt;br/&gt;What are your thoughts on this topic? Do you have any
suggestions or ideas for handling this type of situation?&lt;/div&gt;&lt;!-- [DocumentBodyEnd:555c1d7b-3250-463e-805b-81e213f60737] --&gt;</description>
      <pubDate>Sat, 07 Jun 2008 17:42:47 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/93154</guid>
      <dc:date>2008-06-07T17:42:47Z</dc:date>
      <clearspace:dateToText>6 years 5 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>A Question about Site Security in IIS 6</title>
      <link>https://forums.adobe.com/thread/245538</link>
      <description>&lt;!-- [DocumentBodyStart:bcc57bc8-f3a9-4495-95f3-a5f91bc13900] --&gt;&lt;div class="jive-rendered-content"&gt;Hello All,
&lt;br/&gt;
&lt;br/&gt;I am curious what type of web site permissions settings you
use in IIS 6 with Coldfusion web sites. I would assume that most
ColdFusion sites need the Read, Write, and Execute permissions
enabled within IIS.
&lt;br/&gt;
&lt;br/&gt;The language of these permissions changes from when you are
first setting up the site in IIS and when you edit it later. When
viewing the site, you can see the permissions by going to the home
directory tab.
&lt;br/&gt;
&lt;br/&gt;Right now I'm using Read, Write, Log Visits, and Index this
resource (all checked)
&lt;br/&gt;Application Name: (I beleive this is used for application
pooling - mine is set to default)
&lt;br/&gt;Execute Permissions: Scripts and Executables
&lt;br/&gt;
&lt;br/&gt;Does anyone think this is overkill? I don't see any
recommended settings on the Adobe web site.
&lt;br/&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:bcc57bc8-f3a9-4495-95f3-a5f91bc13900] --&gt;</description>
      <pubDate>Thu, 15 May 2008 00:29:09 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/245538</guid>
      <dc:date>2008-05-15T00:29:09Z</dc:date>
      <clearspace:dateToText>6 years 6 months ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>How to Password Protect a Directory so all Files are Protected?</title>
      <link>https://forums.adobe.com/thread/135217</link>
      <description>&lt;!-- [DocumentBodyStart:ca2da3a1-8d97-4b8c-8854-1bb18c81e588] --&gt;&lt;div class="jive-rendered-content"&gt;Hello CFers and Happy Holidays,
&lt;br/&gt;
&lt;br/&gt;I am moving a web site over from a Linux server over to a
Windows 2000 server. The site was currently password protected via
the oh so familiar .htaccess method on the Linux server. Now that
the site is on IIS on Windows, the .htaccess files don't work. 
&lt;br/&gt;
&lt;br/&gt;I have created a MSSQL database with a users table that
contains all of the username and passwords that are allowed to
access the site.
&lt;br/&gt;
&lt;br/&gt;Normally I would just log users in by querying the database,
setting a session variable, and then using application.cfm to check
to make sure the users is logged in. However, in this particualr
site, most of the files are made up of .htm files which do not get
processed by the ColdFusion application.cfm tag.
&lt;br/&gt;
&lt;br/&gt;Several posts indicated that I would need to disable
anonymous access within IIS and then create the individual user
accounts within Administrative Tools &amp;gt; Computer Management &amp;gt;
Users and Groups. However, in this case, I don't want to create
thousands of new users within windows.
&lt;br/&gt;
&lt;br/&gt;Is there a way for me to password protect all files within a
directory while still using the accounts set up in my MSSQL
database for authentication?
&lt;br/&gt;
&lt;br/&gt;Thanks,
&lt;br/&gt;David Levin&lt;/div&gt;&lt;!-- [DocumentBodyEnd:ca2da3a1-8d97-4b8c-8854-1bb18c81e588] --&gt;</description>
      <pubDate>Tue, 18 Dec 2007 22:07:24 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/135217</guid>
      <dc:date>2007-12-18T22:07:24Z</dc:date>
      <clearspace:dateToText>6 years 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Trouble with MSSQL query</title>
      <link>https://forums.adobe.com/thread/120917</link>
      <description>&lt;!-- [DocumentBodyStart:a038f9ce-0a72-4873-93fb-8e0b6291602c] --&gt;&lt;div class="jive-rendered-content"&gt;Hello All,
&lt;br/&gt;
&lt;br/&gt;I have an unusual situation where I am trying to query the
database (MSSQL) using an IN statement and the PK list has
approximately 10,000 records in it. SQL throws an error "The query
processor ran out of stack space during query optimization" which
relates to a limitation in MSSQL Server: (
&lt;a class="jive-link-external-small" href="http://support.microsoft.com/kb/288095)" rel="nofollow"&gt;http://support.microsoft.com/kb/288095)&lt;/a&gt;
&lt;br/&gt;
&lt;br/&gt;Microsoft's suggestion is to create a temporary table and
then JOIN the two tables to get the results you are looking for.
However, in my particular situation, I don't know how to create a
temporary table from just list data.
&lt;br/&gt;
&lt;br/&gt;Here is an example of the coldFusion template:
&lt;br/&gt;
&lt;br/&gt;Step 1: Get a list of IDs that this user is allowed to see
&lt;br/&gt;Query a bunch of records and sub records and generate a list
variable (#RecordsToGet#)
&lt;br/&gt;Note, this query loops several times because of parent/child
relationships in the table. After each loop, the list is appended
to.
&lt;br/&gt;
&lt;br/&gt;Example:
&lt;br/&gt;&amp;lt;cfset currentparent = 0&amp;gt;
&lt;br/&gt;
&lt;br/&gt;&amp;lt;CFLOOP condition="ContinueLoop IS 'yes'"&amp;gt;
&lt;br/&gt;
&lt;br/&gt; &amp;lt;cfset LoopCount = LoopCount + 1&amp;gt;
&lt;br/&gt;
&lt;br/&gt; &amp;lt;cfquery datasource="#datasource#" name="getMyStuff"&amp;gt;
&lt;br/&gt; Select ID, Parent
&lt;br/&gt; FROM myTable
&lt;br/&gt; WHERE Parent = #currentparent#
&lt;br/&gt; AND Criteria = '#bla#'
&lt;br/&gt; &amp;lt;/cfquery&amp;gt;
&lt;br/&gt;
&lt;br/&gt; &amp;lt;!-- assign the new parent to a value list and append the
master list --&amp;gt;
&lt;br/&gt; &amp;lt;cfset CurrentParent = ValueList(getMyStuff.ID)&amp;gt;
&lt;br/&gt; &amp;lt;cfset RecordsToGet =
ListAppend(RecordsToGet,CurrentParent)&amp;gt;
&lt;br/&gt; &amp;lt;cfset loopcount = loopcount + 1&amp;gt;
&lt;br/&gt;
&lt;br/&gt; (continue loop until there are no more records (i.e. you
have reached the bottom of the tree)
&lt;br/&gt;
&lt;br/&gt;&amp;lt;/cfloop&amp;gt;
&lt;br/&gt;
&lt;br/&gt;Step 2: Get the record details for the matching records in
the (#RecordsToGet#) list.
&lt;br/&gt;
&lt;br/&gt;&amp;lt;cfquery datasource=#datasource# name="getTheRecords"&amp;gt;
&lt;br/&gt;SELECT ID, Name, Description, Image, Etc...
&lt;br/&gt;FROM MyTable
&lt;br/&gt;WHERE ID IN (#RecordsToGet#) &amp;lt;-- the problem lies here
&lt;br/&gt;AND Name = '#MoreFilterCriteria1#'
&lt;br/&gt;AND IMAGE = '#MoreFilterCriteria2#'
&lt;br/&gt;&amp;lt;/cfquery&amp;gt;
&lt;br/&gt;
&lt;br/&gt;I have been able to fix the problem (temporarally) by
checking if #RecordsToGet# is has more than 1000 list elements, and
if so, get ALL of the records in the table and then use a QofQ to
filter out the records.
&lt;br/&gt;
&lt;br/&gt;So the 2nd query above would become:
&lt;br/&gt;
&lt;br/&gt;&amp;lt;cfquery datasource=#datasource# name="getTheRecords"&amp;gt;
&lt;br/&gt;SELECT ID, Name, Description, Image, Etc...
&lt;br/&gt;FROM MyTable
&lt;br/&gt;WHERE ID &amp;lt;cfif ListLen(RecordsToGet) GT 1000&amp;gt;IN
(#RecordsToGet#) &amp;lt;cfelse&amp;gt;1=1&amp;lt;/cfif&amp;gt;
&lt;br/&gt;AND Name = '#MoreFilterCriteria1#'
&lt;br/&gt;AND IMAGE = '#MoreFilterCriteria2#'
&lt;br/&gt;&amp;lt;/cfquery&amp;gt;
&lt;br/&gt;
&lt;br/&gt;&amp;lt;cfif ListLen(RecordsToGet) GT 1000&amp;gt;
&lt;br/&gt;
&lt;br/&gt; &amp;lt;cfquery dbtype="query" name="getTheRecords"&amp;gt;
&lt;br/&gt; SELECT * FROM getTheRecords 
&lt;br/&gt; WHERE ID IN (#RecordsToGet#)
&lt;br/&gt; &amp;lt;/cfquery&amp;gt;
&lt;br/&gt;
&lt;br/&gt;&amp;lt;/cfif&amp;gt;
&lt;br/&gt;
&lt;br/&gt;Although this has temporarally fixed the problem, the
performance of these queries is VERY slow.
&lt;br/&gt;
&lt;br/&gt;Does anyone have any suggestions or tips?
&lt;br/&gt;
&lt;br/&gt;Thanks so much.&lt;/div&gt;&lt;!-- [DocumentBodyEnd:a038f9ce-0a72-4873-93fb-8e0b6291602c] --&gt;</description>
      <pubDate>Sun, 21 Oct 2007 18:08:18 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/120917</guid>
      <dc:date>2007-10-21T18:08:18Z</dc:date>
      <clearspace:dateToText>7 years 3 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>15</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Code view not in synch with Design view (Dreamweaver CS3)</title>
      <link>https://forums.adobe.com/thread/121073</link>
      <description>&lt;!-- [DocumentBodyStart:c7a6ebe5-be99-49ba-bf87-2d1d81ece67c] --&gt;&lt;div class="jive-rendered-content"&gt;Hello All,
&lt;br/&gt;
&lt;br/&gt;On my main work PC, I am running Dreamweaver CS3. When I am
working in split view (with both Design and Code view visible) when
I click on an element (say, a button) in Design view, the code view
automatically shows me the code for the element that I am working
on. That way, if I need to manually edit the code, I can click on
the Code view and make the appropriate changes.
&lt;br/&gt;
&lt;br/&gt;On my laptop I am also running Dreamweaver CS3 However, when
I am working in split view and I click on a element in Design view,
my code view does NOT update itself and continues to show the last
bit of code I was working on in Code view. While this could come in
handy at times where i want design view and code view to show me
two different things, I mostly would like code view to update
automatically. Currently the only way I can get code view to update
on my laptop is to hit the "refresh design view (F5)" button. Is
there a way to do this automatically? Is this an option in
Dreamweaver preferences because I don't see it anywhere.
&lt;br/&gt;
&lt;br/&gt;Thanks so much for your help.&lt;/div&gt;&lt;!-- [DocumentBodyEnd:c7a6ebe5-be99-49ba-bf87-2d1d81ece67c] --&gt;</description>
      <pubDate>Sat, 20 Oct 2007 20:43:43 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/121073</guid>
      <dc:date>2007-10-20T20:43:43Z</dc:date>
      <clearspace:dateToText>7 years 3 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Query of Queries (QofQ) Escaped Character Problem</title>
      <link>https://forums.adobe.com/thread/70891</link>
      <description>&lt;!-- [DocumentBodyStart:72c570ad-2194-43fa-9eb5-d1ad24112f3f] --&gt;&lt;div class="jive-rendered-content"&gt;Hello All,
&lt;br/&gt;
&lt;br/&gt;I'm trying to run a query or queires (QofQ) and I'm doing a
LIKE comparison that looks for bracket characters ([ ]) within a
string, however ColdFusion is ignoring the brackets. How can I
escape the bracket character? So far I have only been able to
escape the percent sign based on the ColdFusion Live Docs. The
error message I get when I run the query below is:
&lt;br/&gt;
&lt;br/&gt;Invalid Escape Sequence. Valid sequence pairs for this escape
character are: "\%", or "\_".
&lt;br/&gt;
&lt;br/&gt;Here is the query:
&lt;br/&gt;&amp;lt;cfquery dbtype="query" name="getLogs"&amp;gt;
&lt;br/&gt; SELECT *
&lt;br/&gt; FROM GetLogs
&lt;br/&gt; WHERE Description LIKE '%\[User:#UserID#\]%' ESCAPE '\'
&lt;br/&gt; &amp;lt;/cfquery&amp;gt;
&lt;br/&gt;
&lt;br/&gt;Thanks for your help!&lt;/div&gt;&lt;!-- [DocumentBodyEnd:72c570ad-2194-43fa-9eb5-d1ad24112f3f] --&gt;</description>
      <pubDate>Tue, 31 Jul 2007 20:00:52 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/70891</guid>
      <dc:date>2007-07-31T20:00:52Z</dc:date>
      <clearspace:dateToText>7 years 3 months ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>How would you debug this issue?</title>
      <link>https://forums.adobe.com/thread/150067</link>
      <description>&lt;!-- [DocumentBodyStart:a223578e-f6ab-4781-9f4f-7b26ac8d213c] --&gt;&lt;div class="jive-rendered-content"&gt;I have a CF application running on CFMX7 that has sessions
enabled:
&lt;br/&gt;
&lt;br/&gt;&amp;lt;cfapplication name="myApplication" applicationTimeout=
"#createTimespan(2,0,0,0)#" sessionmanagement="yes"
clientmanagement="yes" sessiontimeout="#CreateTimeSpan(0,1,0,0)#"
setclientcookies="yes"&amp;gt;
&lt;br/&gt;
&lt;br/&gt;however, I noticed that the site periodicially purges the
session periodically booting out any logged in users. I also
beleive that the client variables are also dissapearing when this
issue occurs.
&lt;br/&gt;
&lt;br/&gt;How would you as a developer go about debugging this issue?
&lt;br/&gt;
&lt;br/&gt;Thanks for your help.&lt;/div&gt;&lt;!-- [DocumentBodyEnd:a223578e-f6ab-4781-9f4f-7b26ac8d213c] --&gt;</description>
      <pubDate>Fri, 11 May 2007 17:33:34 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/150067</guid>
      <dc:date>2007-05-11T17:33:34Z</dc:date>
      <clearspace:dateToText>7 years 6 months ago</clearspace:dateToText>
      <clearspace:replyCount>11</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>cfchart MX7 doesn't scale results like MX6</title>
      <link>https://forums.adobe.com/thread/154573</link>
      <description>&lt;!-- [DocumentBodyStart:fca75960-0126-4679-9423-625b237e8aa4] --&gt;&lt;div class="jive-rendered-content"&gt;There appears to be a bug in cfchart in ColdFusion MX7 where
if you are trying to display a bar chart from a query with too many
rows, the chart will display with no bars in it. 
&lt;br/&gt;
&lt;br/&gt;For example, if I have a query with 365 rows (one for each
day of the year), and I try to display it in a CFCHART that is
600px wide, the chart data won't appear. If I specify a width of
850px, the chart data appears.
&lt;br/&gt;
&lt;br/&gt;In ColdFusion 6, the chart would automatically scale the bars
so you could squish as much data into a small space as you wanted.
Does anyone know a way to re-create this in MX7?&lt;/div&gt;&lt;!-- [DocumentBodyEnd:fca75960-0126-4679-9423-625b237e8aa4] --&gt;</description>
      <pubDate>Fri, 20 Apr 2007 01:00:26 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/154573</guid>
      <dc:date>2007-04-20T01:00:26Z</dc:date>
      <clearspace:dateToText>7 years 6 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>CFCHART MX7 doesn't scale the X axis like 6.1</title>
      <link>https://forums.adobe.com/thread/156250</link>
      <description>&lt;!-- [DocumentBodyStart:7d96a414-8485-4935-ace7-84380e8daf41] --&gt;&lt;div class="jive-rendered-content"&gt;There appears to be a bug in cfchart in ColdFusion MX7 where
if you are trying to display a bar chart from a query with too many
rows, the chart will display with no bars in it. 
&lt;br/&gt;
&lt;br/&gt;For example, if I have a query with 365 rows (one for each
day of the year), and I try to display it in a CFCHART that is
600px wide, the chart data won't appear. If I specify a width of
850px, the chart data appears.
&lt;br/&gt;
&lt;br/&gt;In ColdFusion 6, the chart would automatically scale the bars
so you could squish as much data into a small space as you wanted.
Does anyone know a way to re-create this in MX7?&lt;/div&gt;&lt;!-- [DocumentBodyEnd:7d96a414-8485-4935-ace7-84380e8daf41] --&gt;</description>
      <pubDate>Fri, 13 Apr 2007 18:29:03 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/156250</guid>
      <dc:date>2007-04-13T18:29:03Z</dc:date>
      <clearspace:dateToText>7 years 7 months ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Regular Expression Trouble</title>
      <link>https://forums.adobe.com/thread/188114</link>
      <description>&lt;!-- [DocumentBodyStart:4ab784bc-89ae-4a6a-b935-87dd39ef67a7] --&gt;&lt;div class="jive-rendered-content"&gt;Hello All, Happy Holidays.
&lt;br/&gt;
&lt;br/&gt;I'm creating a component in an application that is similar to
Facebook's "News Feed" feature. This feature lists rows from a
database which may contain some 'special text' that needs to be
converted to HTML. Note: I am storing the 'special text' in the
database instead of the actual html code to save space in the
database in case the name of the object is very long.
&lt;br/&gt;
&lt;br/&gt;Here's what I'm trying to do:
&lt;br/&gt;
&lt;br/&gt;In the database a record might look like this: 
&lt;br/&gt;On 12/25/06 [user:253]John Smith[/a] Logged On.
&lt;br/&gt;
&lt;br/&gt;When I display the table I want to convert it to the
following:
&lt;br/&gt;On 12/25/06 &amp;lt;a href="user_info.cfm?userId=253"&amp;gt;John
Smith&amp;lt;/a&amp;gt; Logged On.
&lt;br/&gt;
&lt;br/&gt;I've been able to create the following regular expression
which does a good job converting the text to a link, but I am
unable to get the uniqueID (253) from the string. Note: Description
is the name of the column that is being processed.
&lt;br/&gt;
&lt;br/&gt;&amp;lt;CFSET temp = ReReplace(Description,'\[User:.\]','&amp;lt;a
href="user_info.cfm?userID=253"&amp;gt;','ALL')&amp;gt;
&lt;br/&gt;&amp;lt;CFSET temp =
ReReplace(temp,'\[/a\]','&amp;lt;/a&amp;gt;','ALL')&amp;gt;
&lt;br/&gt;
&lt;br/&gt;Is there a way I can convert the string in one regular
expression? Also, how can I get the number value after the colon
(:) and insert it into the replacement string?
&lt;br/&gt;
&lt;br/&gt;Also, to complicate things, the string may have multiple
instances of 'special text'. For example:
&lt;br/&gt;On 12/25/06 [user:253]John Smith[/a] modified
[user:262]Captain Picard's[/a] account
&lt;br/&gt;
&lt;br/&gt;Thanks for your help!
&lt;br/&gt;
&lt;br/&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:4ab784bc-89ae-4a6a-b935-87dd39ef67a7] --&gt;</description>
      <pubDate>Tue, 26 Dec 2006 07:51:34 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/188114</guid>
      <dc:date>2006-12-26T07:51:34Z</dc:date>
      <clearspace:dateToText>7 years 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Accessing CFMODULE variable scope</title>
      <link>https://forums.adobe.com/thread/195511</link>
      <description>&lt;!-- [DocumentBodyStart:86f8fe59-2420-47c9-ba7b-89fb69de824f] --&gt;&lt;div class="jive-rendered-content"&gt;If you have a ColdFusion template which calls another
template within a CFMODULE tag, can you later access variables set
in the CFMODULE tag from the caller template? I am aware of the
CALLER scope within CFMODULES however, I was wondering if there is
a scope to go the other direction so templates can get the
variables within the cfmodule?
&lt;br/&gt;
&lt;br/&gt;For example:
&lt;br/&gt;
&lt;br/&gt;---SecondPage.cfm---
&lt;br/&gt;
&lt;br/&gt;&amp;lt;CFSET Apples="yes"&amp;gt;
&lt;br/&gt;
&lt;br/&gt;---End---
&lt;br/&gt;
&lt;br/&gt;---FirstPage.cfm---
&lt;br/&gt;
&lt;br/&gt;&amp;lt;CFMODULE template="secondpage.cfm"&amp;gt;
&lt;br/&gt;
&lt;br/&gt;The value for apples is:
&amp;lt;CFOUTPUT&amp;gt;#[scope].Apples#&amp;lt;/CFOUTPUT&amp;gt;
&lt;br/&gt;
&lt;br/&gt;---End---
&lt;br/&gt;
&lt;br/&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:86f8fe59-2420-47c9-ba7b-89fb69de824f] --&gt;</description>
      <pubDate>Thu, 30 Nov 2006 06:35:09 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/195511</guid>
      <dc:date>2006-11-30T06:35:09Z</dc:date>
      <clearspace:dateToText>7 years 11 months ago</clearspace:dateToText>
      <clearspace:replyCount>6</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Tracking Hits Vs. Visits</title>
      <link>https://forums.adobe.com/thread/213141</link>
      <description>&lt;!-- [DocumentBodyStart:fae9dd26-cf3a-4d79-bf40-f72f07580848] --&gt;&lt;div class="jive-rendered-content"&gt;Hello All,
&lt;br/&gt;
&lt;br/&gt;I would like to track how many site visitors are downloading
specific files from my web application. I have set up a template
that records the time/date the user requests the file into an
ActivityTracking table in my db, and then dynamically sends them
the file via CFCONTENT.
&lt;br/&gt;
&lt;br/&gt;For example:
&lt;br/&gt;1. User clicks link
&lt;br/&gt;2. CF template stores the request in the database along with
the date/time
&lt;br/&gt;3. CF sends the user the file via CFCONTENT
&lt;br/&gt;
&lt;br/&gt;I want to be able to distinguish between someone repeatedly
downloading the same file (hits), and someone downloading it for
the first time within a given time frame (visits).
&lt;br/&gt;
&lt;br/&gt;My first instinct was to put a cookie on a user's machine
after they download the file, and look for that cookie, the next
time they click on the link. However, if the user has cookies
disabled or deletes their cookies, this method won't work. The site
would see this as a new visitor.
&lt;br/&gt;
&lt;br/&gt;My next instinct was to check the IP address of the user and
look for a duplicate within my Activity Tracking table in the
database. However, if the user is behind a proxy, firewall, etc. I
may not get an accurate count of visitors downloading the file.
&lt;br/&gt;
&lt;br/&gt;There must be a way to utlize both methods (or perhaps an
even better method) for figuring out if the user has downloaded the
file before (say, within a given timeframe like 1 hour).
&lt;br/&gt;
&lt;br/&gt;I've seen this kind of logic before in online polls. For
example, the polls on the howard stern web site www.howardstern.com
do a very good job at ensuring no duplicate poll submissions from
the same computer, but still allow different computers with the
same IP to access the poll. I can fill out their poll, delete my
cookies, block cookies, and not be allowed to re-submit the poll
again. I can then go to my laptop which uses the same external IP
address as my desktop and be able to fill out the poll as if I was
a new user. If the system were blocking the IP, they would have
blocked my laptop too. This is the type of logic I would like to
use for my web application. 
&lt;br/&gt;
&lt;br/&gt;Any thoughts?
&lt;br/&gt;
&lt;br/&gt;Thanks,
&lt;br/&gt;David Levin&lt;/div&gt;&lt;!-- [DocumentBodyEnd:fae9dd26-cf3a-4d79-bf40-f72f07580848] --&gt;</description>
      <pubDate>Thu, 04 May 2006 01:56:58 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/213141</guid>
      <dc:date>2006-05-04T01:56:58Z</dc:date>
      <clearspace:dateToText>8 years 6 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

