<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
			<channel>
            <atom:link href="http://blog.classsoftware.com/rss.cfm?mode=full" rel="self" type="application/rss+xml" />
			<title>Class Software - Database</title>
			<link>http://blog.classsoftware.com/index.cfm</link>
			<description>Web technologies and applications focusing on ColdFusion, Flex and Flash.</description>
			<image>
    			<title>Class Software</title>
    			<url>http://www.classsoftware.com/images/logosm.gif</url>
    			<link>http://blog.classsoftware.com/index.cfm</link>
			</image>			
			<language>en-us</language>
			<pubDate>Thu, 09 Sep 2010 05:36:10 +1000</pubDate>
			<lastBuildDate>Sun, 13 May 2007 06:42:00 +1000</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>justin@classsoftware.com (Justin Mclean)</managingEditor>
			<webMaster>justin@classsoftware.com (Justin Mclean)</webMaster>
				
			
			
			
			
			<item>
				<title>ColdFusion Securing Databases (part 2)</title>
				<link>http://blog.classsoftware.com/index.cfm/2007/5/13/ColdFusion-Securing-Databases-part-2</link>
				<description>
				
				In &lt;a href=&quot;http://blog.classsoftware.com/index.cfm/2007/5/7/ColdFusion-Securing-Databases&quot;&gt;ColdFusion Securing Databases (part 1)&lt;/a&gt; we looked at restricting what sql statements can be run with a datasource and partitioning applications to  use multiple datasources and multiple users to improve security. In this article we&apos;ll look at setting the permissions on the database tables.
				 [More]
				</description>
						
				
				<category>ColdFusion</category>				
				
				<category>SQL Injection</category>				
				
				<category>Database</category>				
				
				<category>Security</category>				
				
				<pubDate>Sun, 13 May 2007 06:42:00 +1000</pubDate>
				<guid>http://blog.classsoftware.com/index.cfm/2007/5/13/ColdFusion-Securing-Databases-part-2</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>ColdFusion Database Indexes</title>
				<link>http://blog.classsoftware.com/index.cfm/2007/5/12/ColdFusion-Database-Indexes</link>
				<description>
				
				The most common problem I&apos;ve run into with applications slow performance is the lack of indexes on the databases. Sometimes this is just because the application ran fine with a small amount of data but now is working off a larger amount, or the application is being used in unexpected ways (running less &apos;common&apos; queries run more often), or the production environment doesn&apos;t have the same indexes as the development environment or worse case the indexes were never created in the first place.

Without indexes queries can take seconds with indexes they take milliseconds!
				 [More]
				</description>
						
				
				<category>ColdFusion</category>				
				
				<category>Database</category>				
				
				<category>Performance</category>				
				
				<pubDate>Sat, 12 May 2007 09:00:00 +1000</pubDate>
				<guid>http://blog.classsoftware.com/index.cfm/2007/5/12/ColdFusion-Database-Indexes</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>ColdFusion Securing Databases (part 1)</title>
				<link>http://blog.classsoftware.com/index.cfm/2007/5/7/ColdFusion-Securing-Databases</link>
				<description>
				
				Most ColdFusion applications I&apos;m come across tend to use a single datasource or if they use more than one the same user credentials are used. As well as causing possible performance and scalability issues this can be a security risk.

It&apos;s quite easy to restrict what SQL statements a datasource will run with the ColdFusion administrator.
				 [More]
				</description>
						
				
				<category>ColdFusion</category>				
				
				<category>SQL Injection</category>				
				
				<category>Database</category>				
				
				<category>Security</category>				
				
				<pubDate>Mon, 07 May 2007 16:25:00 +1000</pubDate>
				<guid>http://blog.classsoftware.com/index.cfm/2007/5/7/ColdFusion-Securing-Databases</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>ColdFusion Database Pool Master/Slave(s)</title>
				<link>http://blog.classsoftware.com/index.cfm/2007/5/6/ColdFusion-Database-Pool-MasterSlaves</link>
				<description>
				
				Last week when I looked at databases pools I got a few suggestions re master/slaves databases. In this configuration you set up a single database (called the master) and have it replicate to one or more other databases (called the slaves).
				 [More]
				</description>
						
				
				<category>Scalability</category>				
				
				<category>Singleton</category>				
				
				<category>Database</category>				
				
				<category>Custom Tag</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Sun, 06 May 2007 12:50:00 +1000</pubDate>
				<guid>http://blog.classsoftware.com/index.cfm/2007/5/6/ColdFusion-Database-Pool-MasterSlaves</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>ColdFusion Database Pools and Resource Counting</title>
				<link>http://blog.classsoftware.com/index.cfm/2007/4/30/ColdFusion-Database-Pools-and-Resource-Counting</link>
				<description>
				
				With a discussion with &lt;a href=&quot;http://www.codeodor.com/&quot;&gt;Sammy&lt;/a&gt; he suggested that my ColdFusion database pool DSN component could be extended to select the current datasource with the least no of connections rather than just randomly picking one.

Here&apos;s the modified code.
				 [More]
				</description>
						
				
				<category>ColdFusion</category>				
				
				<category>Singleton</category>				
				
				<category>Database</category>				
				
				<category>Custom Tag</category>				
				
				<pubDate>Mon, 30 Apr 2007 00:12:00 +1000</pubDate>
				<guid>http://blog.classsoftware.com/index.cfm/2007/4/30/ColdFusion-Database-Pools-and-Resource-Counting</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>ColdFusion RAID databases (or database pools)</title>
				<link>http://blog.classsoftware.com/index.cfm/2007/4/28/RAID-databases</link>
				<description>
				
				You&apos;ve tuned your databases queries, added all of the indexes you can think of and cached all of the queries you can but your database still isn&apos;t giving you the performance you need.

So it&apos;s time to split up your database into several databases and move each of these new databases off onto separate database servers. Or perhaps a RAID database is the solution to your performance issues.
				 [More]
				</description>
						
				
				<category>Scalability</category>				
				
				<category>Database</category>				
				
				<category>Singleton</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Sat, 28 Apr 2007 16:30:00 +1000</pubDate>
				<guid>http://blog.classsoftware.com/index.cfm/2007/4/28/RAID-databases</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>ColdFusion Securely Storing Passwords</title>
				<link>http://blog.classsoftware.com/index.cfm/2007/3/31/ColdFusion-Securely-Storing-Passwords</link>
				<description>
				
				Consider the following code that implements a simple login.

&lt;code&gt;
&lt;cfquery name=&quot;user&quot; datasource=&quot;#request.dns#&quot;&gt;
select * from users
where name = &apos;#form.login#&apos; and password = &apos;#form.password#&apos;
&lt;/cfquery&gt;

// if login failed go back to login page
&lt;cfif user.recordcount is 0&gt;
    &lt;cflocation url=&quot;login.cfm&quot;&gt;
&lt;/cfif&gt;
&lt;/code&gt;

One of the issues with this is that the password is stored in the database as plain text. Anything with access to the database (including your ColdFusion application) could possibly be used to get a list of all users and their passwords.
				 [More]
				</description>
						
				
				<category>ColdFusion</category>				
				
				<category>Database</category>				
				
				<category>Security</category>				
				
				<pubDate>Sat, 31 Mar 2007 16:44:00 +1000</pubDate>
				<guid>http://blog.classsoftware.com/index.cfm/2007/3/31/ColdFusion-Securely-Storing-Passwords</guid>
				
			</item>
			
		 	
			</channel></rss>