While that doesn't explicitly delay user requests, it does contribute to load on the server (both CF and DB), so it will have some effect on overall system performance. I suspect that synchronous log4j calls would still be faster to the user, as well as greatly reducing the logging overhead, but async processing is a good compromise for getting DB-based logging with a minimum of user effect.
Another route (not always possible) is to do all your logging in OnRequestEnd (build a queue through the request, and then actually log it there), because you can use CFFLUSH before you run it, so the user should get back their whole page before the logging happens. Certianly not an ideal scenario, but if your logging is expensive, it's a cheap way to reduce the effects. cheers, barneyb On 9/20/05, Michael Dinowitz <[EMAIL PROTECTED]> wrote: > I use an async process to log user information into a DB. Fast, effective and > has 0 impact on a user session while still having the logs the way I want > them (id for user agent, etc.) > The only limitation is that you need an async process (enterprise), use a > hack to CFMX 7 > (http://www.fusionauthority.com/Techniques/Article.cfm/ArticleID:4503), use a > web service with no wait or some other situation. > If you want the code I'll send it over your way. I've been meaning to write a > Fusion Authority article on it. > -- Barney Boisvert [EMAIL PROTECTED] 360.319.6145 http://www.barneyb.com/ Got Gmail? I have 100 invites. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218717 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54