Setting high-units to zero to turn off the cache

Hi,
I'm looking for an easy way to turn off a cache. If I set high-units to zero does that effectively turn off the cache without side effects?
Thanks,
pat

We have a feature request (COH-599) to do just this, and the solution is tentatively scheduled for the 3.2 release. Here is the description:
"[Client] wants to be able to make a simple config change to see how the app would behave without any cache (i.e. zero-capacity cache)."
Does that sound like what you are looking for?

Similar Messages

  • JPA -- How can I turn off the caching for an entity?

    Hi,
    I have a problem that I will illustrate with a simplified example. I have created an entity:
    @Entity(name="Customer")
    @Table(name="CUSTOMERS")
    public class Customer implements Serializable {
    }I have also set the collowing properties in persistence.xml:
    <property name="toplink.cache.type.default" value="NONE"/>
    <property name="toplink.cache.size.default" value="0"/>
    <property name="toplink.cache.type.Customer" value="NONE"/>
    <property name="toplink.cache.size.Customer" value="0"/>
    <property name="toplink.cache.shared.Customer" value="false"/>And then I run the following code:
    Customer cust = em.find(Customer.class, 1L);
    System.out.println(cust);
    cust = em.find(Customer.class, 1L);
    System.out.println(cust);The problem: the second call to em.find does NOT generate a query to the database. Here's a fragment from the console log:
    [TopLink Fine]: 2007.05.11 02:55:05.656--ServerSession(2030438)--Connection(5858953)--Thread(Thread[Main Thread,5,main])--SELECT ID, SEX, NAME, MANAGER FROM CUSTOMERS WHERE (ID = ?)
         bind => [1]
    Customer: id=1, name=Customer #1, sex=MALE
    Customer: id=1, name=Customer #1, sex=MALECan anyone help me? Why isn't the caching turned off? I tried various combinations of properties. Nothing worked. I was expecting to see two queries to the database. I can see only one.
    I tried with TopLink Essentials Version 2 Build 39 and Version 2 Build 41.
    Best regards,
    Bisser

    The cache is likely turned off, but you can't tell because you are using the same transactional EntityManager instance for the two queries. The EntityManager requires its own cache for object identity and transactional purposes, as once you read an object in through the EM, the spec requires that all subsequent reads return the same instance. Only the EntityManager refresh will cause a refresh, that or setting your queries to use the toplink.refresh and toplink.cache-usage query hints.
    I would strongly recommend you use a query cache for performance, but there are of course reasons why one might not be the best option.
    http://weblogs.java.net/blog/guruwons/archive/2006/09/understanding_t.html
    is a good blog on understanding the caching used In TopLin Essentials.
    Best Regards,
    Chris

  • Why should we turn off query cache when alternative UOM solution is used?

    Hi, all, Why should we turn off query cache when alternative UOM solution is used?I found it in "Checklist for Query Performance", but I dont know why.
    Please tell me if u know.
    PS: I also dont know how to turn off the cache, Need your help, thanks!

    hi ,
           I have also some confusion regarding Cache Parameters . What is the importance of cache ,  Should we delete the cache memory time to time for each query ? I have chked it in RSRT but never use the chache monitor function .

  • How do we turn off the notification clicks? I set "Notifications" to "Silent" in the "Sound" settings.

    How do we turn off the notification clicks in the Galaxy S5? I already set Notifications to Silent in the Sound settings.

    Go into settings > sounds > volume >  slide both system and notifications volume  full left. This will lower the sound output to zero. 
    System notifications are a pop-pop sound made whenever a key pad entry is made or a new command or change is made to the system itself.  B33 .tikibar1   But you will not have any notification sounds at all if you do this.

  • Every time I start iTunes I get the message: "iTunes exec has been set to run in compatability mode for an older version of Windows. Turn off compatability mode for iTunes before you open it." How do I turn off the compatability mode?

    Every time I start iTunes I get the message: "iTunes exec has been set to run in compatability mode for an older version of Windows. Turn off compatability mode for iTunes before you open it." How do I turn off the compatability mode? Particularly when I have to do it before I turn on iTunes.

    Try the following document, only be sure that none of the boxes in the compatibility mode tab are checked (not just the compatibility mode box itself):
    iTunes for Windows: How to turn off Compatibility Mode

  • How can you turn off the braille setting on an iPhone 4s, once on it won't let you slide the phone into use mode to change the settings or do anything?

    How can you turn off the braille setting on an iPhone 4s, once on it won't let you slide the phone into use mode to change the settings or do anything?

    An alternate method is Accessibility Settings when connected to iTunes. You should be able to turn it off there. I would also check out some of the answers listed to the right of this post and see if they can help.

  • I updated my 3GS to os5 and set up icloud and it backed up, although, the backup says incomplete. I turned off the contacts and they are now all gone off the iphone. How do i get them back? I feel like they are in icloud, they are on other iphone i have.

    I updated my 3GS to os5 and set up icloud and it backed it up, although, the backup says incomplete. I turned off the contacts under icloud and they are now all gone off the iphone. How do I get them back? I feel like they are in icloud, because the contacts went to another iphone i have.

    I did turn the contacts back on and it didnt work. I am hoping the wi-fi connection I am on at school is not compatible, and it will work when I get home. Thanks!

  • Windows 8 "Turn off the display" setting not working

    Hi all, I've got a TP W520 which I upgraded to Windows 8 with all updated Lenovo packages including the power mgt driver, Lenovo settings dependency package, and the newly installed Lenovo settings metro app. I'm seeing the following problem when trying to set a time for the monitor to shut off under Control Panel -> Hardware and sound -> Power Options -> Edit plan settings: - If I set any time other than never for "Turn off the display" such as 1 hour for example, the monitor will get turned off as soon as the screen-saver launches from the Windows 8 Lock Screen. - I'm not seeing this same behavior if I let the screen-saver launch while sitting at the desktop screen, problem is only seen from the Windows 8 lock screen. You can test this as follows: - Set "Turn off display" to any time i.e. 30 min - Change your screen-saver to launch after 1 min to test this - Type ctrl-alt-del then click lock to enter the lock screen, then let the screen-saver activate after a minute. - Once the screen saver tries to start, in my case, I see the monitor getting turned off and the screen saver doesn't even start. The monitor shouldn't get turned off until 30 min elapses. I'm suspecting some kind of bug with this which is still outstanding and I look forward to feedback from others on this issue. Thanks, John

    Hello @duleNS 
    To get your issue more exposure I would suggest posting it in the commercial forums since the HP EliteBook 8770w Mobile Workstation is a commercial product. You can do this here Notebook - HP ProBook, EliteBook, Compaq, Slate/Tablet PC, Armada, LTE
    The support page for your product may be helpful in the meantime: HP EliteBook 8770w Mobile Workstation.
    I hope this helps!
    Thank you for posting on the HP Forums.
    Please click the "Kudos, Thumbs Up" at the bottom of this post if you want to say "Thanks" for helping!
    Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
    The Great Deku Tree
    I work on behalf of HP.

  • I just got an iPhone 5s, and I restored from a previous back up and now I can't restore the phone without "turning off the find my iphone setting"?

    I just got an iPhone 5s, and I restored from a previous back up (mistake) and now I can't restore the phone to start again without "turning off the find my iphone setting" but it's using an old email address as the icloud login, which i don't have a password to / never used for an icloud account. I have gone and changed my settings to a different email on my icloud / apple ID but on my phone it won't let me change the email address for icloud, it's greyed over and keeps trying to verify?

    Welcome to the Apple community.
    If you mean that Find My Phone is asking for a password to a different Apple ID to your current Apple ID.
    This feature has been introduced to make stolen phones useless to those that have stolen them.
    However it can also arise when the user has changed their Apple ID details with Apple and not made the same changes to their iCloud account/Find My Phone on their device before upgrading to iOS 7, or if you restore from a previous back up made before you changed your details.
    The only solution is to change your Apple ID back to its previous state with Apple at My Apple ID using your current password, you don’t need access to this address if it’s previously been used with your Apple ID, once you have saved these details enter the password as requested on your device and then turn off "find my phone" and delete the account from your device.
    You should then change your Apple ID back to its current state, save it once again and then log back in using your current Apple ID. Finally, turn "find my phone" back on once again.
    This article provides more information about Activation Lock.

  • Can I turn off the setting that displays the height and width in a little black box when using the marquee tool?

    In Photoshop CC, on a mac...
    When using the marquee selection tool, a little black box pops up next to the curser and displays in real time, the height and width of the selection.  The same annoying box also appears when dragging an item with the move tool, displaying the numerical location of the cursor.  Is there anyway to turn off the display of that little black box?  It is driving me bonkers.

    Under the preferences cmd/ctrl-k click on "Interface". At the bottom of the UI is a drop down box for show transformation. Set that to "Never"

  • My iphone 3gs has started showing the wrong time  and date. All was fine until this afternoon when it changed.  My apps have the right time and date. However the world clock is wrong. I have to turn off the automatic time setting to get the right time.

    My iphone is showing the wrong time and date. All was well until sometime this afternoon when it changed...  to Nov 5 (2 days prior to today), and about 9 hours and some minutes before the actual time.  The world clock for my time zone shows the same wrong date and time. My calender shows the same wrong date and time.  The phone can not find my time zone any more.   The only fix I found was to turn off the automatic setting for time.  What is  happening? Ideas?

    just sorted mine went to
    settings-mail,contacts,calender-timezone support
    then turned it off then on tapped time zone and typed london
    this did sort mine

  • Why can't I make a kik account? I have IOS6 and higher and my restrictions are turned off! Please help!

    Why can't I make a kik account? I have IOS6 and higher and my restrictions are turned off! Please help!

    What happens when you try?
    See:
    iOS: An app you installed unexpectedly quits, stops responding, or won’t open
    Contact the developer/go to their support site
    https://kikinteractive.zendesk.com/home
    Restore from backup. See:
    iOS: How to back up
    Restore to factory settings/new iPod

  • How do your turn off the "black and White" setting for the visually impaired?

    How do you turn off the "black and White" setting for the visually impaired?  Also known as the "tripple Click"

    Settings>General>Accessibilty>White on black--> Off

  • My ipad is disabled and I cannot restore it because the Function Find My Ipad setting was on, and I cannot get in the ipad to turn off the setting in order to restore the ipad. Does anyone know how to solve the problem

    My ipad is disabled and I cannot restore it because the Function Find My Ipad setting was on, and I cannot get in the ipad to turn off the setting in order to restore the ipad. Does anyone know how to solve the problem

    Force iPad into Recovery Mode. Follow step 1 to 5 very closely.
    http://support.apple.com/kb/HT1808
    Note: You may have to repeat the above a few times.

  • Can I turn off the setting to "erase iPad" if I find my lost iPad?

    I lost my iPad a few weeks ago, and since the battery was dead, I couldn't find it using "Find my iPhone."  I was concerned that it could have been left somewhere in public, so I set it to erase the iPad upon connection to the internet.  Now I found the iPad last night.  Can I turn off the "erase iPad" setting in Find my iPhone?  It doesn't seem to allow this (I assume for some security reason, but I need to use my apple id to get into

    Normally I would say no, but one user reported success with the procedure outlined in this thread: https://discussions.apple.com/thread/4076422?start=0&tstart=0.  Can't confirm if this actually worked but it may be worth a try.

Maybe you are looking for

  • How do you get the radio to work ?? - says no radio signal but headphones are plugged in ??

    How do you get the radio to work?  Is another app or download required?  Its a new Ipod nano - 8G, box doesn't say anything about "generation" ?? Appreciate any help cr8tivsolutions

  • Too much information, Mail!

    Recently my Mail has started showing me a lot of extra information in the emails that I receive. Instead of just showing me who it's from and when it was sent and basic details, it is showing "X-sieve", "Return-Path", "Received" about 5 times, X-Scan

  • 401 - Unauthorized error in Value Mapping Replication scenario

    Hi, I'm trying to push some Value Mapping replication data from one of the clients (which is a non-Integration Server) of XI system to IS. When I execute the program which calls the outbound proxy, the XI message fails with the error HTTP_RESP_STATUS

  • TCP Window sizing not working as expected for Windows server 2008 R2 SP1

    Hi , TCP window size is not working as expected. It is varying . Aplied the hotfix suggested by Microsoft and set the multipliccation factor as 1.The window size is not getting auto tuned based on the client machine. The data transfer rate is getting

  • Error in parsing text and splitting it

    Hi all Recently, i recieved some help with regards to splitting up a string into sentences. The following code returns the error message: "LJava.lang.String;@18fe73". Can any one tell me why and how i can resolve this? Many many thanks in advance. i