Jan 3 2009

Data Distance in Application Development

Posted by Mike Brunt at 6:29 AM
40 comments
- Categories: Default | ColdFusion | JRun-J2EE

I mentioned in my latter blog posts of 2008 that one of my focal points of 2009 would relate to databases.  After 9 years of troubleshooting ColdFusion and JRun applications there are two almost absolutes that stand out.

  • Most application problems are caused by or cause dependency issues.
  • Most dependency issues relate to databases.

The reason for this is that in most web application development cases we are interacting with dynamic data, data that is changing and/or being changed by what we are doing, in the application code.  In this article, the first of what will definitely be many in 2009, I am trying to get very basic and introduce overall concepts that I will amplify in subsequent articles.

Flying home from England I began to think of data very basically, almost as a commodity and it occurred to me that we should start to think of the distance of data.  Something which is rarely considered either at the inception of planning an application or considered in its ongoing maintenance.  So what do I mean by the distance of data?

Firstly I will explain what I almost always see in CF-JRun applications.  There is typically a database which stores data needed in the business, this is stored in files on a hard drive.  Hopefully there is some form of redundancy, multiple hard drives in a RAID configuration, multiple DB servers.  So at this stage the data we need is sitting in database files on the hard drive(s). Just as in life generally distance is relational to time; in considering data retrieval and update we can assume that without modifiers the further distant the data is the longer it will take to be retrieved and/or updated.  So in the most basic install the CF-web servers and the database reside on the same physical server; granted this is rarer than it used to be but I still sometimes see that. In this case, the distance to the data in the database required by the CF-web server is closer than if they were on two separate physical servers.  We can further reduce the distance of the data required by the CF-web server by holding regularly used data in memory, in cache.  This is the most common method I have found to reduce the distance to the data; caching.

As time passes, the database size increases, in most cases, as data is added.  We are now increasing the distance to the data again as the database engine has to work harder to locate required records-recordets.  I have seen tables with hundreds of millions of records spanning many years where no more than 5% of that data is accessed on a regular basis. In this case we are increasing the distance to the data minute by minute and archiving and partitioning can help enormously yet I hardly find their use.  By effectively archiving and partitioning we can reduce the distance to the data we need regularly by moving the older less needed data to other storage areas.In this blog piece I introduced a concept called "Data Distance" and I will be amplfying that by getting more specific about examples and solutions as 2009 rolls on.

Comments

Mike Brunt

Mike Brunt wrote on 01/18/09 9:06 PM

Thomas how great to hear from you and Happy New Year to you too! I missed your comment, apologies on that. Before I admit to drinking beer I want to tell those reading this comment about your mastery in medical billing and all things database.

What a difficult question to answer, so I will give two. In lager style beers, Stella Artois from Belgium. In English beers, Timothy Taylor's Landlord an brilliant beer.
David

David wrote on 07/31/10 4:43 PM

Mike,
In a similar manner, I've used a concept called round robin databases to achieve similar goals. As older data is no longer of much interest to people, yet still causes trouble and builds these great distances to data in the database, you can aggregate the information as it gets older, reducing the overall size of the database, yet still keeping a glimpse of the information if people are interested in it.
cosplay

cosplay wrote on 09/16/10 12:19 AM

Prom Dresses: Find Online fashionable prom dresses, 2011 Prom Dresses, prom gown, cheap prom dresses bridesmaid dresses, bridesmaid gowns, cheap bridesmaid
cosplay

cosplay wrote on 09/16/10 12:30 AM

Prom Dresses: Find Online fashionable prom dresses, 2011 Prom Dresses, prom gown, cheap prom dresses bridesmaid dresses, bridesmaid gowns, cheap bridesmaidSAS
Money

Money wrote on 10/28/10 10:59 PM

A great blog post. If you have some RSS kind of stuff then i would love subscribing to it. Also, there are some great writers i am looking for and i think you are the one as well. Will contact you soon
Channel 10 Acai Berry

Channel 10 Acai Berry wrote on 11/23/10 1:52 AM

Some more such posts in your blog would be great to read it on regular basis
Channel 7 Health Acai Berry

Channel 7 Health Acai Berry wrote on 11/25/10 10:46 PM

I do however believe that you have to prioritize tasks, and if done correctly you will find that some tasks aren't even worth doing in the grand scheme of things
insurenow4less.com

insurenow4less.com wrote on 01/06/11 10:48 AM

hey this was a great post. I really liked what you had to say
That was pretty good information. Wonderful to read your post
You rock it up and keep rocking.

Data - Raw Fact.

Information - Processed Data.

Thats What I got from here



<a href="http://www.insurenow4less.com"; target="_blank"> Auto Insurance </a>
Vaastu

Vaastu wrote on 01/10/11 1:44 AM

Their are so many companies are working for database system. I have also a profession database company. It's really great.
Acai Berry on CBS

Acai Berry on CBS wrote on 02/09/11 9:34 PM

That was pretty good information. Wonderful to read your post
You rock it up and keep rocking.
Acai Berry on CBS

Acai Berry on CBS wrote on 02/18/11 6:27 AM

Data Distance in Application Development
Lean Spa Diet

Lean Spa Diet wrote on 02/24/11 10:54 PM

This site appears to get a great deal of visitors. How do you promote it? It offers a nice unique twist on things. I guess having something useful or substantial to talk about is the most important thing.
Cnn Job Report

Cnn Job Report wrote on 02/26/11 6:05 PM

Hey this was a great post. I really liked what you had to say
kj

kj wrote on 04/17/11 4:20 AM

thank you for writing, I truly liked your most recent story. I think it is best to post far more typically, you clearly have all-natural capacity for blogging!
online tiffin service

online tiffin service wrote on 04/27/11 10:39 PM

I want to say your blog is very good. I always like to read something new about this because I have the similar blog in my Country on this subject so this help´s me a lot. I did a search on the matter and found a good number of blogs but nothing like this.Thanks for sharing so much in your blog
online tiffin service

online tiffin service wrote on 04/27/11 10:41 PM

Hi. I wanted to drop you a quick note to express my thanks. I have been following your blog for a month or so and have picked up a heap of good information as well as enjoyed the way you’ve
online wedding planner

online wedding planner wrote on 04/27/11 10:45 PM

thank you for writing, I truly liked your most recent story. I think it is best to post far more typically, you clearly have all-natural capacity for blogging
online wedding planner

online wedding planner wrote on 04/27/11 10:53 PM

Excellent blog here! Also your web site loads up very fast! What host are you using? Can I get your affiliate link to your host? I wish my website loadedl
ivf

ivf wrote on 05/06/11 1:38 AM

We would not like, in the near future, the mountain to decide to erupt, showering rain of lava to the location and then the society to term that as punishment of rain fire from heavens by the gods....creating another long term distorted story....
catering service in rajasthan,

catering service in rajasthan, wrote on 05/17/11 1:14 AM

I realise this is off topic but while your site looks nice, it would be far better if you'll be able to use lighter colors too in the design. This will encourage a lot more readers come to check it out more often!
bucharest hotels

bucharest hotels wrote on 05/18/11 7:32 AM

Data Distance cannot be evaluated, as you said. I believe is the reason of the difficulty to find this solution.
Web Design

Web Design wrote on 06/22/11 11:35 AM

Data Distance in Application Development
3m hdmi cable

3m hdmi cable wrote on 06/25/11 9:25 AM

Now and then I’ll stumble across a post like this and I’ll recall that there really are still interesting pages on the web. ^_^. Thanks.
xbox 360 hdmi cables

xbox 360 hdmi cables wrote on 06/25/11 1:48 PM

Every time I see a really good article I do a few things:1.Share it with all the relevant friends.2.save it in all of the favorite social sharing sites.3.Make sure to return to the blog where I read the post.After reading this post I am seriously concidering doing all 3!<a href="http://www.hdmicable4u.co.uk/">xbox 360 hdmi cables</a>
xbox 360 hdmi cables

xbox 360 hdmi cables wrote on 06/25/11 1:50 PM

How could I have missed this blog! Its incredible. Your design is flawless, like you know exactly what to do to do make people flock to your page! I also like the perspective you brought to this subject. Its like you have an insight that most people havent seen before. So great to read a blog like this.<a href="http://www.hdmicable4u.co.uk/">xbox 360 hdmi cables</a>
sensual massage in london

sensual massage in london wrote on 06/26/11 11:15 AM

I just wanna thank you for sharing your information and Stumblerz your site or blog this is simple but nice article I've ever seen i like it i learn something today.
Szko?a Jezykowa W Anglii

Szko?a Jezykowa W Anglii wrote on 08/19/11 6:56 AM

Just stumbled across your blog and was instantly amazed with all the useful information that is on it. Great post, just what i was looking for and i am looking forward to reading your other posts soon!
Out Call Massage London

Out Call Massage London wrote on 08/28/11 4:05 AM

I like the cut of your job :) or at least your thought process but sorry to say, I honestly think you would have fully sold me on the idea had you been able to back up your premis with a substantial bit more solid facts.
live chat support sofware

live chat support sofware wrote on 08/28/11 11:02 PM

It is not easy for me to understand and implement the subject from here. Anyway, I would like to thanks for sharing and hope to see more posts in the future from you soon.
4m hdmi cable

4m hdmi cable wrote on 10/22/11 11:38 PM

Just stumbled across your blog and was instantly amazed with all the useful information that is on it. Great post, just what i was looking for and i am looking forward to reading your other posts soon!
london massaging

london massaging wrote on 10/23/11 7:51 AM

This is such a Great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It’s the old what goes around comes around routine.
therapist in london

therapist in london wrote on 10/23/11 10:57 PM

Im impressed. Youre truly well informed and very intelligent. You wrote something that people could understand and made the subject intriguing for everyone. Im saving this for future use.
tantric massage london photos

tantric massage london photos wrote on 11/26/11 4:52 AM

This is what I have been searching in many websites and I finally found it here. Amazing article. I am so impressed. Could never think of such a thing is possible with it...I think you have a great knowledge especially while dealings with such subjects.
private jet charter europe

private jet charter europe wrote on 12/01/11 3:10 AM

great job. very interesting article
private jet charter europe

private jet charter europe wrote on 12/01/11 3:26 AM

great article keep up the good work.
uggs

uggs wrote on 12/04/11 5:38 PM

An example flat boots is <a href="http://www.dimshoes.com">uggs</a>;. which may be fashionable one year only to be succeeded by cowboy boots the subsequent year and softer footwear like suede boots in subsequent years.
junior course in England

junior course in England wrote on 12/16/11 6:28 AM

Just stumbled across your blog and was instantly amazed with all the useful information that is on it. Great post, just what i was looking for and i am looking forward to reading your other posts soon!
Wound Care

Wound Care wrote on 12/29/11 2:48 AM

Your blog provides us a very great information. Its helpful to this topic for find some result.
website developers rajasthan

website developers rajasthan wrote on 01/08/12 8:02 PM

This really is a aw some post, I'm happy I recently found. I have been trying to find guest writers for my blog so if you ever decide that's something you are interested in please feel free to contact me. I will be back to look at out more of your articles later!.....

Write your comment



(it will not be displayed)



Leave this field empty: