Removing multiple entries with minimal overhead

What is the best way to remove a set of entries from an optimistic cache with minimal messaging overhead? Right now, I'm calling myCache.keySet().removeAll(setOfKeys). Does tcmp coalesce all these removals into one messaging sequence, or are all of the keys processed separately? Is there a more efficient way for me to do bulk removal in an optimistic cache? Thanks.
     -pete

Pete,
     Calling myCache.keySet().removeAll(setOfKeys) is the most optimal way indeed.
     At the moment the OptimisticCache service does not "bundle" the removals into one message, though all the messages are asynchronous (meaning that the client thread will not wait for the remove confirmations).
     Regards,
     Gene

Similar Messages

  • How do I remove multiple entries in the "Groups" index of contacts?

    How do I remove multiple entries in the "Groups" index of Contacts on the iPad?

    The Profile Manager is for all versions of Firefox you have installed - every Profile that is listed in the '''profiles.ini''' file will appear there. The location of the Profile folders has no effect on what the Profile Manager dialog window shows. There is no way to set it up relative to one program installation.
    Best thing to do is to have separate desktop shortcuts for each Profile / Firefox-version you want to use.
    http://kb.mozillazine.org/Shortcut_to_a_specific_profile

  • [Solved] Removing multiple entries from grub

    Hi
    There are many entries in my arch's grub boot loader:
    Arch Linux pkg-linux kernel
    *Arch Linux pkg-linux kernel (fallback initramfs)
    Arch Linux
    Advanced options for Arch Linux
    Linux Mint 15
    Advanaced options for Linux Mint 15
    Microsoft Windows 7 Professional
    But I also want to keep following three entries:
    Arch Linux
    Linux Mint 15
    Microsoft Windows 7 Professional
    How can I remove remaining entries from grub menu?
    Regards
    Last edited by zetrotrack000 (2014-03-11 20:01:45)

    Grub2 menu entries are created by a set of scripts in /etc/grub.d
    Your first 2 entries are standard for arch and are generated by the 10_archlinux script. The 10_archlinux script is distributed by arch. It exists because the standard 10_linux script does not always create reliable menu entries for arch.
    Your other linux entries are generated by the 10_linux script which is distributed by grub upstream.
    Your windows entry is generated by the os-prober script. That can just be left alone.
    To sort out the redundant linux entries you could try disabling either of the linux scripts and regenerating the menu.
    Alternatively, you could disable both linux scripts and define your menu entries manually in the 40_custom script. The syntax for custom menu entries is similar to that of grub legacy. See the grub wiki article for info.
    Hope this helps!
    Last edited by Chazza (2014-03-10 22:45:18)

  • Remove static entry with tcl + ios_config when in use

    Hi all.
    We are using a TCL script to to change NAT entries. It works fine but when the entry is in use, the delete entry command ios_config "no ip nat inside source static tcp <local ip> <local port> <global ip> <global port> extendable" "end" returns :
    Static entry in use, do you want to delete child entries? [no]:
    %: Error: static entry in use, cannot remove
    Is it possible to 'interact' inside the TCL script so when the ios_config command returns 'Static entry in use, do you want to delete child entries? [no]:' the script could send 'Y' to remove the entries?
    Thanks in advance.

    We've solved using forced in spite of extendable, so :
    ios_config "no ip nat inside source static tcp <local ip> <local port> <global ip> <global port> forced"

  • Removing multiple entries in the 'Open With' menu

    When I right mouse click on a file, I get the Open With option. On selecting this I get a huge list of options - a lot of them duplicates. How do I remove them?

    You have to rebuild the LaunchServices database. You can do this in the terminal, for instructions see:
    http://www.macosxhints.com/article.php?story=20031215144430486
    or you can use a program that claims it can do it for you (never used it myself):
    http://www.titanium.free.fr/pgs2/english/maintenance.html
    Patrick

  • Multiple Choise with minimal response

    I'm using Captivate 3 and I need a multiple choise quiz slide
    that displays 6 correct choices but the user is required to select
    a minimum of 3 correct choices not ALL 6. Is this possible ? I have
    tried everything and it requires the user to select ALL the correct
    answers to consider it CORRECT. Is there any other type quiz slide
    that will allow me to do this (i.e. hot spot )?
    Thanks

    Pete,
         Calling myCache.keySet().removeAll(setOfKeys) is the most optimal way indeed.
         At the moment the OptimisticCache service does not "bundle" the removals into one message, though all the messages are asynchronous (meaning that the client thread will not wait for the remove confirmations).
         Regards,
         Gene

  • How to find multiple entries in the Directory

    Hi,
    my directory contains lot of multiple entires and I want to find out is there a easier method by a script or command to find out all the mutiple entries in the directory.
    Thanks!!
    Message was edited by:
    Sun_One@TCS
    Message was edited by:
    Sun_One@TCS

    Are you talking about entries that have been renamed because of a Replication Naming conflict (like the entry was added on 2 masters at the same time) ?
    If so, please check the Administration Guide, Replication section.
    <http://docs.sun.com/app/docs/doc/819-0995/6n3cq3av8?a=view#gdquf>
    If you were talking about something else, please be more explicit. Directory Server does not allow you to create multiple entries with the same name. DNs are unique.
    Regards,
    Ludovic

  • Multiple entries in Finder "Window" menu

    A relative is running 10.4 on an iMac. The "Window" menu in the Finder has multiple entries with the name of her computer (e.g., "Mary's Computer"). There are no windows visible, and clicking on any of the entries or on "Bring All to front" does nothing. She thinks that a new entry appears in the menu every time she starts up.
    I'm trying to help her sort this out. Any suggestions?
    Thanks.

    Drag these two files to the Desktop for safe keeping, then reboot...
    /Users/YourUserName/Library/Preferences/com.apple.finder.plist
    /Users/YourUserName/Library/Preferences/com.apple.dock.plist
    The other one involves invisible files lik .DS_Store, do you want instructions for ridding them?

  • Multiple entries in Calendar

    Is anyone else having this problem?
    My contacts are fine, but I noticed multiple entries in my Calendar on my Touch iPod. In the past, I've seen multiple entries with iCal (I think it came from being synced with my blackberry and/or .mac - but it seems to be working fine for the past month or so), but iCal looks fine.
    It's really bizarre, because it almost looks like the further you go back in time, the more duplications for an event (reoccurring) are found. If you try and Delete an occurrence on the iPod, it only allows you to delete from that point forward - but ones from the previous year/month are still there. The starting date for an occurence on the iPod is always on the day you are checking, so it's not like it's set to the first time you entered it or something so you can't go back to the first instance.
    ALSO.
    I noticed that some all day events span over to the following day on the iPod, but are fine in iCal.

    You know - now that you mentioned it - I did see a WHOLE lotta dos - but didn't think anything of it.
    I've since restored the thing and elected to not sync the calendar.
    One thing that did get fixed - was mix-matched album artwork... podcasts, music, even videos were all getting their album artwork messed up - 1.1.2 seems to have fixed that... mind you... I've had to do a factory restore so many times because of this bloody calendar thing; perhaps I should give it more time before I declare that part is ok.

  • Creating multiple entries in ztable with the same name

    Dear sir / madam,
    iam new in sap-abap , i have created ztable in se11, table name zrajesh
    and fields i have created zemp_name and zempid which has data element and domain also. and zprice.
    when iam creating entries in table mataince generator
    eg: zemp_name     zempid       zprice
          rajesh              001             100
          raj                     002            110
          rajesh              001             200  
          rajesh             001              300
         rajesh              001              250
    i am looking forward to create multiple entries of the same employ name .. as shown in example . iam able to create numbers of entries with the help of different names. is it possible to create numbers of entries with same name..
    and it will show all the entries in the list when display.
    please help me..
    regards,
    rajesh swami

    hi,
    have a look at these tables
    VBAK -  Header table
    VBAP -  Item table
    here in table VBAK we have a key field VBELN(document no.)
    Whereas for the same document no. we can have many entries in the the table VBAP where the key is VBELN(document no.)
    and POSNR (line item no.).
    You have to do something of this type i suppose ............
    Hope it helps you,
    Regards,
    Abhijit G. Borkar

  • I want to create a mail merge for address labels into a table, but when I fill a table with merge fields, it ends up creating multiple entries for the same address, rather than one table full of each address.

    ...but when I fill a table with merge fields, it ends up creating multiple entries for the same address, rather than one table full of each address. Please help.
    Thanks!

    That is a quirk of Pagesthat  it applies only one record per page.
    There is a way around this:
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=245&highlight=labels &mforum=iworktipsntrick
    Peter

  • Select For all entries with multiple keys

    Dear Developers,
    im writing a program which reads the last the last mseg entry with bwart 101 and bwart 201 an writes it into different fields of a table. In dependance of the bwart the max-value of mkpf-budat should be moved into field wedat or wadat.
    At the moment i use this coding:
    loop at gt_daten assigning <fs_daten>.
        select distinct max( budat ) from wb2_v_mkpf_mseg2 into <fs_daten>-wedat
          where matnr_i = <fs_daten>-matnr
            and werks_i = <fs_daten>-werks
            and lgort_i = <fs_daten>-lgort
            and bwart_i = '101'.
        select distinct max( budat ) from wb2_v_mkpf_mseg2 into <fs_daten>-wadat
        where matnr_i = <fs_daten>-matnr
          and werks_i = <fs_daten>-werks
          and lgort_i = <fs_daten>-lgort
          and bwart_i = '201'.
      endloop.
    wb2_v_mkpf_mseg2 is a view combining mkpf an mseg by primary keys.
    Searching the internet i read, using FOR ALL ENTRIES should be prefered to selectstatements in loops.
    So i tried:
    *selectstatement
    select budat matnr_i werks_i lgort_i bwart_i from wb2_v_mkpf_mseg2 into table lt_mseg for all entries in gt_daten
        where matnr_i = gt_daten-matnr
          and werks_i = gt_daten-werks
          and lgort_i = gt_daten-lgort
          and ( bwart_i = '101' or bwart_i = '201' )
    *Substitute the MAX( )-Function
      sort lt_mseg descending by matnr werks lgort bwart budat.
      delete adjacent duplicates from lt_mseg comparing matnr werks lgort bwart.
    *Differ between wedat and wadat
      loop at gt_daten assigning <fs_daten>.
        loop at lt_mseg assigning <fs_mseg>
          where matnr = <fs_daten>-matnr
            and werks = <fs_daten>-werks
            and lgort = <fs_daten>-lgort.
          case <fs_mseg>-bwart.
            when '101'.
              <fs_daten>-wedat = <fs_mseg>-budat.
            when '201'.
              <fs_daten>-wadat = <fs_mseg>-budat.
          endcase.
        endloop.
    Even in the dev-system this takes twice the time of the "nested" selects.
    Imho this is because of the internal OR interpretation of the FOR ALL ENTRIES-statement and the size of the result.
    Can somebody give me a hint, how to tune this code?
    Select Inner join should be difficult because the target field differs, dependent of the value in bwart...
    Thanks in advance!

    I understand that you are trying to capture the maximum value of posting date MKPF-BUDAT for movement types 101 and 201 for each combination of material, plant and storage location.
    Few things, that makes the below coding more efficient at both application and database level and I confirmed this on an IDES sandbox
    1. Along with MKPF and MSEG, there is another table WBGT, in the view WB2_V_MKPF_MSEG join and also WBGT has select condition restrictions imposed on its fields. So if this restriction impacts your selection you may want to do a INNER JOIN of MSEG with MKPF only (with MSEG as leading table, as it has an active secondary index with MATNR, WERKS, LGORT and BWART ) and also there won't be overhead from the unnecessary join with WBGT table whose fields you are not using.
    2. The below SORT on lt_mseg will ensure that the record having greatest BUDAT will be at the top of all rows (least index) for each combination of MATNR, WERKS, LGORT and BWART.
    3. DELETE ADJACENT DUPLICATES will ensure that only the top row (having greatest BUDAT) remains in the table lt_mseg for each combination of MATNR, WERKS, LGORT and BWART. This will ensure that subsequent READs with BINARY SEARCH will always and efficiently read the row with maximum value of BUDAT for each unique combination of MATNR, WERKS, LGORT and BWART.
    4. The below logic will require more memory (even though it is more efficient performance wise) compared to direct SELECT with MAX for each MATNR, WERKS, LGORT and BWART in a LOOP the way you were doing before. So if the size of lt_mseg is causing memory issues, your logic with aggregate function MAX at database level will be your only option.
    So, I propose you revise your coding like below for most optimal results
    CHECK NOT gt_daten[] IS INITIAL.
    *selectstatement
    *SELECT budat matnr_i werks_i lgort_i bwart_i
    *  FROM wb2_v_mkpf_mseg2
    *  INTO TABLE lt_mseg
    *    FOR ALL ENTRIES IN gt_daten
    *    WHERE matnr_i = gt_daten-matnr
    *      AND werks_i = gt_daten-werks
    *      AND lgort_i = gt_daten-lgort
    *      AND ( bwart_i = '101' OR bwart_i = '201' ).
    * The below SELECT is more economical than the one commented above
    SELECT mkpf~budat mseg~matnr mseg~werks mseg~lgort mseg~bwart
      FROM mseg INNER JOIN mkpf
        ON mseg~mblnr = mkpf~mblnr AND
           mseg~mjahr = mkpf~mjahr
        INTO TABLE lt_mseg
          FOR ALL ENTRIES IN gt_daten
            WHERE mseg~matnr = gt_daten-matnr
              AND mseg~werks = gt_daten-werks
              AND mseg~lgort = gt_daten-lgort
              AND ( mseg~bwart = '101' OR mseg~bwart = '201' ).
    *Substitute the MAX( )-Function
    SORT lt_mseg BY matnr werks lgort bwart DESCENDING budat.
    DELETE ADJACENT DUPLICATES FROM lt_mseg COMPARING matnr werks lgort bwart.
    *Differ between wedat and wadat
    LOOP AT gt_daten ASSIGNING <fs_daten>.
      READ TABLE lt_mseg ASSIGNING <fs_mseg>
        WITH KEY matnr = <fs_daten>-matnr
                 werks = <fs_daten>-werks
                 lgort = <fs_daten>-lgort
                 bwart = '101' BINARY SEARCH.
      IF sy-subrc = 0.
        <fs_daten>-wedat = <fs_mseg>-budat.
      ENDIF.
      READ TABLE lt_mseg ASSIGNING <fs_mseg>
        WITH KEY matnr = <fs_daten>-matnr
                 werks = <fs_daten>-werks
                 lgort = <fs_daten>-lgort
                 bwart = '201' BINARY SEARCH.
      IF sy-subrc = 0.
        <fs_daten>-wadat = <fs_mseg>-budat.
      ENDIF.
    ENDLOOP.

  • Contextual menu in finder "open with" has multiple entries of same apps

    When I use the contextual menu (right click) on documents, the menu point "open with..." shows multiple entries of the same programs. For example when right clicking a PDF, there appears 5 times neoOffice, 2 times Preview, 6 times ... any other application that you could use to open the document. This occurs on all user accounts, only that the multiplicity of listings of the apps is different. So it can't be a preferences problem on my account. What else could be the cause?
    This is quite annoying because the apps-list becomes very long and unusable.
    Note: I have 2 internal start up disks with OS and apps installed, but only one mounted. That means, there cannot be a duplicate (triplicate...etc) copy of any app accessible at any time.
    Thanks.

    if I quit all running applications, it will be pretty hard to put anything in the Trash!
    Are you being literal? Like quitting the Finder too? Or what bespeaks you?
    Actually, I use Xupport to do that, but I think Onyx and several other Utilities include that option.

  • Flash player .msi fails to install, multiple entries in add remove programs cant be deleted

    we are seeing installation failures when using the .msi installatoin file.  We see an error 2753. The file 'InstallAX.exe' is not marked for installation.  Also, we shoe multiple entries in Add/Remove Programs for Flash Player, but they cannot be removed from add/remove programs.
    We have tried the Flash Uninstall program, but it will not remove them either.
    We have tried installing using the .exe and it installs, but still leaves the old "ghost" entries in add/remove programs.
    Any help in cleaning up this up and allowing us to use the .msi would be greatly appreciated.
    Steve

    i also unistaled this multi time but cant g
    et the prob to resolve

  • To Remove selection screen parameter the arrow mark to avoid multiple entry

    hi i am using  in selection screen the entry as below
    sl_prd  FOR glt0-rpmax
    i want to remove the arrorw for multiple entry please suggest on it
    regards
    arora

    use parameters instead of select options
    Reward points if the above ans is useful...

Maybe you are looking for