Photo from Chile

How I Use Transfer - Part I - Introduction

I've now been using Transfer for about a year, and I've built up a bit of a standard way that I use it in my apps. I'm not suggesting that this is the best way (by any means), but I thought it would be worth posting about it to share my experiences and learn from others. So I'm starting a new series, simply called "How I Use Transfer".

I'm not sure how to best go about describing all that I do. A lot of it is really architectural and isn't specific to Transfer. To a certain extent Transfer could be switched out for another ORM without requiring a lot of code changes. So I suppose this is also about my approach to OO design with ColdFusion. Like others, I have found this to be a long and hard learning curve, and I still have a long way to go. It may be that much of what I'm about to document will change over the next several months, as I learn other ways of doing things, but hopefully it will still be of value, particularly to anyone just starting down this road.

So again, I'm not trying to document any kind of best practices. I already know that there are ideas I've read on other people's blogs that I'd like to implement but haven't yet. This is a snapshot, a point in time, something I'll probably revisit months or years from now and laugh about. But if others are going through the same thing as me, then maybe we can all learn together.

In my next post I intend to describe a high level overview of the architecture of my model.

Great, looking forward to it. On with the show!
# Posted By Nathan Strutz | 6/23/08 12:08 PM
Thanks Nathan. I'll do my best.
# Posted By Bob Silverberg | 6/25/08 5:10 AM
Do you know how i could get only some Datas from a
Query with Transfers like:
"SELECT TOP FROM comments ORDER BY posted"?
# Posted By Reinhard Jung | 8/10/09 1:29 PM
I do not believe that Transfer has implemented TOP in TQL, so I don't think it's possible.
# Posted By Bob Silverberg | 8/10/09 1:45 PM
Hi Bob, yes, thats what i tought as well. But it do not make sense
to get first ALL datas and then looping over them,
just get only the first 5 of them?
Espacially because of the performance?
How do yoou get just the first 5 Record? Never had to do this?
Thanx a lot for any hint!
# Posted By Reinhard Jung | 8/10/09 1:54 PM
If performance is going to be a concern, then just do that operation as a <cfquery>. Don't use Transfer for it at all.
# Posted By Bob Silverberg | 8/11/09 9:12 AM