Does stating username & passsword in CFQUERY affect performance?

I'm working on a site that has been having serious database
performance issues. One thing I noticed about the code is that the
previous dev specifies the username and password in the CFQUERY
tag.
I normally just rely upon those settings at the CF admin
datasource level. Does having that on every CFQUERY negatively
impact performance? Am wondering if it has the CF server opening
redundant connections to the SQL server.

quote:
Originally posted by:
haroldprinter
I'm working on a site that has been having serious database
performance issues. One thing I noticed about the code is that the
previous dev specifies the username and password in the CFQUERY
tag.
I normally just rely upon those settings at the CF admin
datasource level. Does having that on every CFQUERY negatively
impact performance? Am wondering if it has the CF server opening
redundant connections to the SQL server.
Even if specifying the username/password does impact the
query it's marginal at best. If you're on a dedicated server, i.e.
there are no other clients on that machine nor are there any
security concerns then including the user/pass in the DNS would be
preferred, however if you are in a shared environment the very best
practice is to save the database name, username, and password as
variables in your application.cfm and reference those variables in
each query you make. That way, should the code for your pages every
become exposed all that web users will see is the variable names,
which is of much less use to malicious users than the actual
user/pass info.

Similar Messages

  • Does daisy-chaining a Belkin Mac-compatible hub affect performance?

    I've had a 7-port Belkin hub plugged into my 13" Macbook and before that a 15" Powerbook for several years and have been pretty satisfied with it. I'd like to get a new one and connect it to the original (or vice-versa). Does anyone know if doing that would affect performance of any kind? (Upload times, wireless mouse interference, etc.?) Belkin doesn't seem to have anyone who knows much--the rep I talked to didn't even know Belkin made a hub that works with Mac.
    Thanks for any information anyone has.

    That makes sense. My old hub is 2.0, so it should work with the new one I want, which is also 2.0.
    I don't know how much power I might ever be using at one time. have a wired keyboard and wireless or USB mice, and at times I probably download something into my printer buffer while at the same time backing up to an external hard drive or flash stick. But I don't think I'd ever be doing more than that, and the present 7-port hub seems to have no problem handling jobs requiring 4 ports at once.
    I really just wanted the second hub because the present one is at the back of the desk behind the dictionary (cord is too short to reach the front!), and I'm tired of trying to insert devices into the USB ports without knocking the dictionary off its stand. I figured that plugging a second 7-port hub into the first one would allow me to have a hub at the front of the desk and give me a few extra ports as a bonus. If you have a better idea, I'd be happy to hear it! Meanwhile, thanks so much for the information, and the fast response.

  • Does DBMS.JOB affect Performance

    Dear experts
    Please tell me Does DBMS.JOB affect Performance.

    Can you detail what performance you are talking about.
    DBMS_JOB is simply a scheduler, whcih you can use for your repeated uattended job initiation.which is nt going to impact the performance.
    Probably the actual Job if intensive can hit your performance.

  • Does frequent garbage collection affect performance

    Hi,
    I have written code in a filter for all the servlets in the application.
    Depending on the servlet requested I set the objects to null after
    it has finished its work.
    My question is that since the filter will be executed each time a
    servlet is requested,could it result in affecting performance ?

    Styna wrote:
    I'm writing off my own experience so take my advice with a grain of salt.
    The battery is known to 'degrade' when reaching excessive temperatures. Apple recommends keeping the temperature between to 32 degrees Fahrenheit and 95 degrees Fahrenheit.
    I used to game heavily on my phone which would get hot. After a year, I noticed that I had to fully charge my phone 3 times a day in order to make it through a day with light usage. Also, I noticed that the phone would die when the battery percentage display would be at all sorts of numbers, 37%, 43%, 7%, and sometimes stay on 1% for 5 minutes while running a processor-intensive game.
    After taking my phone to the Apple store for a diagnostic, Apple confirmed issues with the battery. There's no way to know if having my phone stay hot for long periods of time damaged the battery or if I just had a defective battery.
    My recommendation is if you know you will be gaming heavily to take the case (if you have one) off your phone and to be in a cool environment to try to keep the phone from getting too hot.
    Your battery failed not because of temperature, but you used it up. The battery is spec'd for 400 full charge/discharge cycles. If you fully drain the battery every day that's about 14 months. If you drain it more than once a day that's less time. The phone has a thermal protection circuit that will shut it down if it gets hot enough to damage anything. And actually Lithium batteries do not degrade at higher temperatures. Electric cars and plugin hybrids use the same battery technology (like the Tesla, Chevy Volt, Prius Plugin, Nissan Leaf) and they run much hotter than iPhones. And last 10 years.

  • BULK COLLECT LIMIT affects performance in any way?

    Hi,
    I want to know whether BULK COLLECT LIMIT affects performance in any way?
    How does one decide what limit to keep?
    is there a oracle recommendation on the same?

    I agree with Bonist that you should read Tom's article but I am going to disagree, to a minor extent, with Tom's comment about 100 rows.
    When developing with BULK COLLECT I always add a parameter to stored procedures that is used to tune the limit clause Then when the code goes to unit testing, and at the beginning of integrated unit testing, the value is varied and the results graphed. For final testing the parameter is dropped. The number I hard code for production is the value at the left side of the top of the bell curve.
    What I find is that 100 is sometimes the right number butI have one app I developed recently where 50,000 was the right number (11gR1). As with almost everything Oracle the best answer is always that "it depends." In the case where 50K is the best solution the server has 32G of RAM, and everything processed is an SMS message averaging only 79 bytes.

  • How low can mac mini storage capacity go before it affects performance?

    I have 15 GB left on my hard drive, how low can it go before it affects performance and I welcome any recommendations on how I can best expand storage space.
    Usage: I use my mac for word and excel docs, but I store a number of images and graphic files, but I don't use any designer software.
    Thanks,
    Sq1mac

    Welcome to Apple Discussions!
    There's no one answer to the question of how much free space you really need to keep on your drive before performance and system stability begins to suffer, but with 15Gb left at the present, you will only be reaching that point if you are doing things like burning disk images (because macOS grabs drive space to store the image) or syncing with MobileMe.
    In your situation I'd be careful not to go below 10Gb free.
    Expanding storage space is very easy. Buy an external drive with either USB2.0 or Firewire interface (firewire is better but more expensive) and connect it to your system. If the drive isn't set up for a MAc, it can easily be partitioned and formatted using Disk Utility on the Mac, and you are then ready to use whatever capacity the external has - including moving any or all your files, music, photos etc to the external if you wish or need to. Just about any external, even models which appear to be for PC/Windows use only, will work perfectly well on a Mac - you don't need a 'Mac compatible' drive.

  • Cool'n'Quiet affecting performance?

    Hello,
    I noted something in my K9A2 Platinum and AMD Phenom 9950.
    First of all I had it oced to 2.7 (x13.5) and Cool'n'Quiet enabled.
    Well, due to a bug in Everest 5.02 sensor driver, I can't read correctly the CPU clock because this program show even speed like 700 MHz when I'm doing heavy task. As I thought it was impossible, I ran CPU-Z and this showed the correct values (1300 MHz when idle and 2700 when doing heavy tasks).
    The issue is the following: Today I was converting an .avi video to DVD using a program that is optimized to use only two cores. The strange thing I noted is that processor was at 1300 MHz and only few times it changed to 2700 MHz. However voltage was at 1.3 all the time until conversion finished. Of course that if I disable CnQ or I choose another energy plan, speed is 2700 even when idle.
    This program (ConvertxtoDVD) used about 50% of my processor.
    Does CnQ affect performance? I thought that a conversion like that is a heavy task and it can benefit from 2700 MHz instead 1300 MHz, or CnQ is smart enough to know when an app. benefit or not from a higher speed?
    Thanks!
    I want to say than one of the better thing of MSI is its forum 

    Thanks for the suggestion.
    Based on the results I can confirm that CnQ affect performance, quite disappointing. I don't know the difference between the CnQ of Athlon 64 X2 vs. Phenom, but in Athlon the processor change speed to its maximum  immediately when I started doing heavy tasks instead of Phenom changing its speed to max only when 4 cores are being used and only some times when using less than 4 cores.
    Here're results:
    With CnQ ENABLED:
    CPU Score   3347
    CPU1 - Red Valley   1,160 FPS      CPU Tests
    CPU2 - Red Valley   1,545 FPS      CPU Tests
    With CnQ DISABLED:
    CPU Score   3622
    CPU1 - Red Valley   1,209 FPS      CPU Tests
    CPU2 - Red Valley   1,737 FPS      CPU Tests
    What do you think? Is a mobo, CPU problem or a performance hit like this is normal?
    Quote from: Aramus8 on 14-July-09, 05:55:06
    On some programs you will get a performance hit with Cool & Quiet enabled.  Run 3DMark06 with it on and then with it off and you will see the performance hit.  Most programs you will never notice.

  • HT201263 does the smart cover magnet strip affect the ipad screen by making colour lines appear on the screen when opened or unlocked by the cover

    Does using the magnetic smart cover affect the ipad by causing stripes of interference lines over the screen, then when opening and shutting would revert to a normal home screen, But repeatedly does this lines on screen effect and then eventually the whole screen goes white!

    No. It should not do that.

  • I'd like a friend to add a track to a song I'm doing on Garageband, but he uses Digital Performer. Can I somehow transfer my interface to his interface?

    I'd like a friend to add a track to a song I'm doing on Garageband, but he uses Digital Performer. Can I somehow transfer my interface to his interface?

    Just keep it like it is. As an account Mgr you can do everything except add other account mgrs or change billing account pw. But if you have your dad's sign in info for his my vzw.  Now if you need to build your credit then that's another story. Good luck to you and your dad

  • What does Apple mean by "For best battery performance, leave your device connected to a power source until the restore is complete."

    I just recently returned an IPad air and exchanged it for another. I first set up this new one as a new IPad but then deleted all content and settings right away (since I wasn't getting the progress I had made in apps and games) in order to restore it from my previous IPad Air. I then checked after on how to backup via icloud and saw this line under the subtitle of how to restore from a backup, "For best battery performance, leave your device connected to a power source until the restore is complete." What does Apple mean by "for best battery performance"? Im just a bit worried of issues.
    p.s. And yes I did have it connected to the power. And the ios is the default ios for new IPad Airs.

    Welcome to the Apple Community.
    It only means you should restore whilst it is connected to a power supply, so that your battery doesn't go flat during the process.

  • Convergence - AlphaImageLoader affects performance

    According to the YSlow FireFox extension, Convergence's extensive use of AlphaImageLoader is a detriment to performance.
    Grade F on Avoid AlphaImageLoader filterThere are a total of 73 filters
    * https://.../iwc_static/layout/css/main.css?...
    * https://.../iwc_static/layout/themes/default/default.css?...
    The IE-proprietary AlphaImageLoader filter attempts to fix a problem with semi-transparent true color PNG files in IE versions less than Version 7. However, this filter blocks rendering and freezes the browser while the image is being downloaded. Additionally, it increases memory consumption. The problem is further multiplied because it is applied per element, not per image.>
    Do they really affect performance? If so, what would happen if I stripped them out of the css files?
    Edited by: jessethompson on Oct 5, 2009 8:54 PM

    jessethompson wrote:
    According to the YSlow FireFox extension, Convergence's extensive use of AlphaImageLoader is a detriment to performance. The AlphaImageLoader filter is only applied when the client is using IE6 i.e. all of the AlphaImageLoader CSS rules have a class name of ".dj_ie6".
    So removing these rules is not going to improve the speed of non-IE6 browsers and will cause IE6 images to have non-transparent backgrounds.
    Regards,
    Shane.

  • Does ios 7.1.1 improve battery performance ,also what is its effect on the speed of iphone 4s????

    Does ios 7.1.1 improve battery performance ,also what is its effect on the speed of iphone 4s????
    if it increase battery i want to know if it reduce the iphone speed ,as after ios 7.1 my iphone got more speed but the battery drainage increased

    Tx modular, I mean by speed the general performance of iPhone which optimized after iOS 7.1 but I am afraid to update to iOS 7.1.1 not to lose this perfect performance but also I need battery life optimization

  • Does bending of iphone 6 really affect my phone?

    does bending of iphone 6 really affect my phone?

    With normal use, no.
    Don't subject it to abnormal amounts of pressure and you'll be fine.
    ~Lyssa

  • HT1222 So with OSX 10.5.8 does this online banking security problem affect me?

    So with OSX 10.5.8 does this online banking security problem affect me?

    @ stedman1 and Apple computer Inc.
    Believe is religion.
    Is that a private opinion about current security issues or an official statement of the company?

  • Duplication of movieclip will affect performance?

    hi
    i have doubt on duplicating movieclip.
    i have a movieclip, it has a huge codes inside in it. when i duplicate this movieclip into 5 means, all the duplicated movieclip will work based on its repective code inside. this will affect the performance or not.  
    any suggestion pls.

    In terms of filesize it should not affect performance.  In terms of processing, anytime you increase the amount of simultaneous processing that is occuring you can affect performance.  It probably wouldn't matter too much if you had your code once in the main timeline for all five or each has its own set of code. If the amount of processing is the same, the performance should be the same.  You should try it with different numbers of them and see if performance is grossly affected.

Maybe you are looking for

  • Weblogic Bridge Batch Size setting ?

    What is the per-requisite to set JMS bridge batch size in weblogic 10.3.3 Customer setting in production: QoS --> Exactly once Asynchronous Mode Enabled --> True Batch Size --> 1 From weblogic console "A messaging bridge instance provides transaction

  • Real application cluster

    dear friends, I am stuck in situation. I have 2 Dell Servers with linux os. oracle 10g database is installed on that 2 servers. now i want to configure replacation for these to databases, for this is i preffered RAC. i want to know... how to configur

  • HT2534 I would like to change me rescue email address on my itunes account.

    My rescue account needs to be change because it no longer is available to me. Can I change my rescue email address?

  • Built in Stocks App - German?

    When I hit the Yahoo! button for a stock the app takes me to de.m.yahoo.com. I tried going directly to m.yahoo.com, but it reverted back to de.m.yahoo.com. Why is this? My iPhone default language is English.

  • Can I convert the Iphone into an iPod Touch?

    In a cost cutting move, my employer will no longer pay for my iPhone usage in March. As of the end of this month, I'll be done with the 2 year contract with AT&T. My company has already given me a cell phone and will give me the iPhone. Can I just us