Why no method of locking/unlocking in bulk doesn't call in API consistency?

I think I previously have been hiking by the absence of lock block / unlock the API methods in consistency API: s but I would still raises this question once more as a proposal of improvement!

Assuming that one can find an order of locking keys to lock first based on which node each key belongs to, and the other another property of the key, I think that savings could be achieved!

Assume that we need to lock 200 keys (for example during the phase of preparation of a transactional plan) spread over 10 knots to say. If these keys are ordered first by currently affected node and then by ordering by binary example (treat every form of keys serialized as an array of bytes that is gradually being compared), not more than 10 calls remote (one for each node involved) would be necessary (they must still be made in the right order) compared to 200 remote calls that is necessary with the lock method for key unique todays! In this case, a reduction of 20 times in distance travel could be carried out, and assuming that all the locks are immediately granted (environment stockings) speed up to should be almost 20 times more!

I realize that if the rebalancing would occur during a lock request in bulk the benefit of specific performance would not be realized but I still believe, it would be possible to operate reliably.

If the team consistency won't manage the complexity of the order of the keys even a method call in bulk with an ordered structure (table, list, etc.) would be a great help. It would then be the developer to order keys in a way that creates a potential reduction in the number of remote calls required (i.e. implement similar logic as described above or some specific logic of the application with the same effect).

Ideally, the two types of methods (specified user or automatically calculated key command) could be provided...

The methods need bulk also has to release the locks (here, we could even have an option to release all locks in parallel or opposite strict order from that used during the closing). If the release at the same time allows the acceleration is better than 20 times...

Comments, suggestions and criticism is much appreciated - is this really a good idea, or am I missing something obvious (or not so obvious) that makes my useless suggestion?

/ Magnus

Published by: MagnusE on January 14, 2010 20:02

MagnusE wrote:
Thanks for your thought Robert!

I know that only partition mapping key is absolutely stable, but given that the nodes are not lacking or are added / deleted that often (in a job properly cluster) I continue to consider the performance improvement - if a key is is more managed by a node receiving a range of keys to lock (which should have been there) , it can start just to do remote unique key locks for now re-located those. We could even simply 'rewritten' and switch entirely to single key locking if rebalancing is detected... In the wast the majority of cases the keys would be there and acceleration went out to be understood.

It is not that simple unfortunately... There are race conditions if a rebalancing occurs all near a client block is trying to acquire some locks and die in the middle of it... it maybe isn't able to clean up a deadlock he entered... of course only if the locks are not released on the death of the customer...

I also was considering if it could be done using components of consistency, but the piece I was missing above all was the possibility of taking a lock "for the account" of another node, i.e. If I send an invoked from node A to node B and C (the keys I want to block) I don't see an obvious way to block in a way it is A which is registered as the locking door (so that if one failure locks would be out).

You can do this with a custom entry processor-based solution, but not with own coherence locks... You just have to identify the clients of locking with the data available to someone else... for example generated by the cluster and published in "some form of directory.

>

My main motivation to propose this improvement is to expedite the processing of transaction card (we need the XA transactions, so we really don't have realistic choice but to use the transaction card) so, as you point out, there is no point in trying to create a solution custom, since it would still not be used transaction card (which is not snap-in).

I didn't say it is useless to try to create a custom solution. If you need the participation of JTA transaction, you can create your own JCA adapter on top of your solution, one that gives you even more features and addresses some of the shortcomings we see in CacheAdapter (the problem of blocking the death of customer and the only CacheAdapter by transaction JTA by collecting several maps to commit "transaction-cards"). This adapter can wrap caches in your own packaging before you create a TransactionMap on the wrapped cache. The wrapped cache divert the locking operations of your approach instead of locking of the own coherence methods.

It is not very easy to do, but it's not very hard either.

It feels like it's one of those things that, for many reasons, is the most great part of the product that solved by each developer (or a community project) - the most important integration with map of transaction...

/ Magnus

As far as I know, some projects are underway to address the gaps in TransactionMap but I don't know anything about planning.

Best regards

Robert

PS: Check your workstation

Tags: Fusion Middleware

Similar Questions

  • I get a message on my watch "Device locked" Unlock iPhone to start using Apple Watch "so I have the odd from my iPhone, now I can't pair it again.

    I get a message on my watch "Device locked" Unlock iPhone to start using Apple Watch "so I have the odd from my iPhone, now I can't pair it again.

    Hello

    Follow these steps to clear your locked watch and re-pair it with your iPhone:

    • Connect your watch to its charging cable - with power connected.
    • Hold down the side button until you see the cursor off the power.
    • Press firmly (IE more firmly than usual) on Power Off and then press erase content and settings.
    • Then re-pair your watch by using the app shows on your iPhone, choose restore backup when the possibility.

    More information:

    Set up your Apple Watch - Apple Support

    If you have forgotten the password for your Apple Watch - Apple Support

  • iPad locking/unlocking function of Pro

    I have an iPad Pro when I go into settings > general, the Lock/Unlock function is not here, but I have this function in my iPad Air. Please help how I can get this problem resolved?

    See previous discussion: there is no option to lock/unlock in setting/General in my new iPad 9.7 pro. How to obtain?

  • It has no lock/unlock option in setting/General in my new iPad 9.7 pro. How to get it?

    My new Ipad 9.7 pro has no "lock/unlock" option in Settings / General of the uptodate 9.3.1 iOS.

    How can I solve this problem?

    Petch

    You have coverage chip on your iPad?

  • Windows 10 - FN button and touchpad lock/unlock button problem Satellite L675-11J

    Hello
    I have a Toshiba Satellite L675-11J and 10, lock/unlock FN key touchpad button do not work after upgrading to windows.
    Help, please!
    Best regards

    Fn keys require special Toshiba software that controls this feature for laptop.

    But Windows 10 drivers are not published for this series of Satellite L675 because is not win 10 supported.

    From my point of few, this means you can use Notepad as part of Win 10 but without the keys FN function.

  • Locking/unlocking function of rotation does not

    After the last update of my a6000 of lenovo for the function of locking/unlocking lolipop 5.0.2 rotation does not. Even when I get a call phone screen does not turn on either. While many features like WiFi reception & battery draining improved. Rotation function auto fix kindly & call receive screen time on the service in the next update of emergency

    After a few resets, the problem is solved

  • Why some files are locked when scanning

    Why some files are locked during scanning. I use avg and scan of the entire computer. can anyone help?
    p.s., no other suggestions posted already worked.

    Ref: http://forums.avg.com/au-en/avg-forums?sec=thread&act=show&id=212602

    Please be informed that the locked files (files) also have access rights. If you run the command line scanning (or manual scanning of the AVG User Interface), it runs with the rights of the logged-on user. But to access some files (e.g. System Volume Information) you must have the rights SYSTEM (and similar).
    AVG scan on demand is executed with SYSTEM rights (under the SYSTEM account).

    • Locked file
      The reported file is locked, so cannot be scanned by me. Usually, this means that some files are constantly used by the system (e.g. swap file).
  • My touchpad lock / unlock does not work

    My touchpad lock / unlock does not work I am on windows 7 and I have hp 2000-2d04se, I tried to install different drivers, but I can't find the settings for locking and unlocking. I also tried to search the website and Q & A different but I coudnt solve the problem. Help, please.

    Hello

    I finally found the solution. I downloaded a different version of synaptics and it worked it is SP61030 I found it on the hp website. Its version is 16.3.9.0. Finally

    Thanks for trying to help

    Kind regards

  • Why don't the LOCKING of upper CASE indicator showing when the button?

    Why don't the LOCKING of upper CASE indicator showing when the button?

    A CapsLock indicator should be part of installation Win7 OS normal and here's why.  I use a brand new Microsoft Wireless Keyboard 2000 s/n 0356100416937.  I can send you a photo or the retail sales receipt if you doubt this statement.  It is there no CapsLock indicator on the keyboard itself, probably to extend the life of the battery.  I also use an IOGEAR KVM switch to facilitate the transition between multiple computers.  Emule KVM switch a keyboard of 102 standard keys, so even if I load the last Ko-driver (MS Intellitype 8.2) the pilot reports Microsoft keyboard not detected.  Therefore, there is no way to determine when the CapsLock key is active.  If you have ever tried to enter a long password upper-lower case with the CapsLock key in the wrong state, so you can imagine my frustration with this keyboard.

    So, how do you display CapsLock indicator?

    REMOTELY, HP TECHNICAL SUPPORT TOOK ME AND MY 520TOUCHSMART AS I HAD AN INDICATOR OF CAPS LOCK ON MY SCREEN, NOW HE IS GONE. I GAVE THEM MY MS OFFICE2010 CELA: NOW I FOUND SOMETHING ELSE. I LACK WILLINGNESS TO CONTACT OF COURSE FRIDAY. IF I FIND A SIMPLE SOLUTION TO MY PROBLEM, I'LL POST IT. SOMEONE HAS AN IDEA?

  • How to stop pop up "OSD MAIN CONTROLS LOCKED/UNLOCKED.

    How can I stop a pop up signal coming just in the middle of my screen and says "OSD MAIN CONTROLS LOCKED/UNLOCKED.

    Problems with OSD (menu appears and disappears at random or flashes "locked and unlocked" on and off - or other defects) are caused by the buttons themselves.
    These monitors (especially Philips) use poor quality buttons that after 2 or 3 years wear out and go semi short circuit. You can measure them with a meter.
    The permanent solution would be to replace the button (open the monitor, the solder then resolder) - A faster / less accurate fix would be to simply pull on the cable to the Panel of buttons inside and again without controls in total-, involving the opening of the monitor.
    You can still use the monitor without these buttons, automatic aid and outside.

  • Fingerpad of HP G72 lock/unlock

    I tried everything, but I can't seem to find how lock/unlock the pad of the finger. I'm in College and when I type, the Palm of my hand touches the fingerpad and the cursor will move to another part of my book and it is too difficult to type on my laptop.

    You can try the following steps to disable or enable the touchpad and see if that solves the problem:
    1. on your keyboard, look for a function key that has an icon of a touchpad. The icon usually resembles a large rectangle with two small rectangles below.
    2. Once you find the key with an icon of touchpad on it, hold down the function key (usually located in the box at the bottom left of the keyboard and can display characters Fn on it) on your keyboard and simultaneously press the key that has touchpad on it icon. If the problem persists, again hold the function (Fn) key and press twice the key function (which shows the touchpad icon).

    If the problem persists, you can consult the following link for some options more troubleshooting:
    http://www.ehow.com/how_6787620_unlock-touchpad-laptops.html

    Hope this will help you.

  • Options of locking/unlocking of blackBerry Smartphones

    Maiden Post. Be gentle with me!

    I'm here on behalf of a friend (he delivers my meds, so we can say that it saves my life), who inherited a BlackBerry Bold 9700 (I think) of his son. His son insisted on his setting a password (wise), but there now to unlock almost every time he uses it.

    Is it possible to be asked for the password to the market, but not after that?

    What are the choices are available? I skimmed the manual, but it doesn't seem to be much choice lock/unlock.

    I saw 'Do call during the locking' but yesterday he wanted to add a phone number to contacts, and this requires a password.

    We're both diminishes us in our 60s and on our stage, the need for security against ease of use...

    Hi Swiftie,

    Welcome to BlackBerry community support fourms.

    By default there is no option to set the password to powered only device. However, you can consider using 3rd party device app lock/unlock for this purpose.

    Alternatively, you can try activation request PIN SIM that will require you on powered only.

  • Error: "the drive where windows is installed is locked, unlock the drive and try again" while trying to regenerate the system

    My daughters Toshiba S955-S5373 went all green, she says while she helped the battery out. I didn't know she was in trouble. We tried to solve; However, Bad_system_config_info appears before diagnosing and resolving problems. After 4 hours, nothing has been resolved.

    I found the DVD we created initially and attempted to load that. We shut down the laptop with the power and reverse holding F12 button. I tried to boot from the DVD, but it does not read the DVD and just crossed the initially to start and diagnose and solve problems. I have waited 2 hours, but without success.

    I turned off again and I just tried to refresh the PC. He said "the drive where windows is installed is locked, unlock the drive and try again".

    I then tried auto repair but could repair. Log file C:\Windows\System32\Logfiles\Srt\SrtTrao;/txt appeared.

    I even tried to reset the PC as a last resort. But the message failed to reset the PC required A disk partition is missing.

    Don't know what I can do. Can you help us?

    Original title: Toshiba S955-S5373 will not start

    Hi Annaed,

    Thanks for posting your query in Microsoft Community.

    I can understand your concerns to your system and will certainly guide you in the right direction to solve the problem.

    Control bug BAD_SYSTEM_CONFIG_INFO occurs if the SYSTEM registry hive is damaged. However, this corruption is generally unlikely, because the bootloader, known as NT Loader (NTLDR) in versions of Windows prior to Vista, checks a hive for corruption when loading the hive.

    This bug check can also occur if some values and critical registry keys are missing. You keys and values may be absent, if a user manually change the registry.

    As per the error message "the drive where windows is installed is locked, unlock the drive and try again", I would refer to the suggestions posted by phanlon7 replied on 12 October 2013 in the next thread and check if they are useful.

    Windows crash hard drive - discount - locked, unlock the hard drive

    Hope this information is useful. Let us know if you need more help, we will be happy to help you.

  • After effects layer properties Auto expands when I click Hide, Unhide, Lock, Unlock

    The title pretty much says all of this, I tried to search if this has been discussed before but no could not find anything.

    I'm on the latest version after effects CC, 13.8.1.38.

    This ONLY happens when the composition I work has enough layers to display the vertical scroll bar (which means that the number of layers exceed the size of the size of screen/composition). If I click Hide/Show or lock/unlock on any layer, it automatically increases its content makes life very irritating because I have to close it manually each time. If I increase the size of the composition window Panel so that all layers are visible (i.e. no vertical scroll bar) so it no longer occurs. So the key to triggering it is to ensure there are more layers than your screen has space to show in this Panel.

    I've looked everywhere in the settings and couldn't find something to turn it off. I know that the fastest solution is to keep the composition and store the number of layer, but it is not always possible for me that I must continue to work with items broken down in the same composition. My workflow would be more complicated if I continued to switch between the tabs before publication.

    All solutions would be highly appreciated I just can't work with this 'feature' useless. Thanks in advance!

    This is certainly NOT a feature is not that it is useless, it allows to work with layers of worse.

    Let's see if we are talking about the same thing. Here is a composition with multiple layers:

    I press the lock or hide and everything seems the same:

    so if we are talking about the same thing, there is something wrong with your software.

    try to reset the preferences Ctrl + Alt + press on the launch of the app you except that you please provide screenshots of before and after, and perhaps a video capture if you can and we will consider here.

  • Why a method to create a constraint would allow the index to be used, but not another.

    Hi all

    With the help of:

    Oracle Database 11 g Enterprise Edition Release 11.2.0.4.0 - 64 bit Production

    SQL Developer Version 4.0.2.15

    I had to do the following query on a table.

    Select distinct chdrnum, tranno

    of ractpf_pgr;

    I ran the setup of SQL in SQL Developer, who told me that he was doing a full table scan,

    (It's what you get using SEPARATE!)

    After some research, I discovered that if I put in question on columns not null check constraints

    and then recreated the index based on these columns, I'd get a full index scan instead of a table scan.

    Good news - off, I went and tried using the following method (I think it's call a constraint of out-of-line)

    and created one for each colmn using snytax below.

    ALTER table RACTPF_PGR add constraint CS_CHDRNUM_NN check (CHDRNUM is not null) validate;

    Ran my SQL Tuning Advisor again - no joy - a full table scan that was happening.

    Did some more research and recreated the constraints with the help of an online method

    ALTER TABLE RACTPF_PGR CHANGE (CHDRNUM CONSTRAINT CS_CHDRNUM_NN NOT NULL);

    My SQL Tuning Advisor is represented - and yes the index was used.


    But what I want to know why a method would cause the index to use another does not


    Thanks in advance.


    The second is a NOT NULL constraint.

    The a ('is not null') is technically not a NOT NULL constraint.

    Give me a moment to start my database, and I will demonstrate.

    Edit: Here's the demo:

    SQL> create table x (a number null, b number null);                  
    
    Table created.                                                       
    
    SQL> alter table x add constraint a_nn check(a is not null) validate;
    
    Table altered.                                                       
    
    SQL> alter table x modify (b constraint b_nn not null);              
    
    Table altered.                                                       
    
    SQL> select column_name, nullable
      2  from user_tab_cols
      3  where table_name = 'X';                                         
    
    COLUMN_NAME
    ----------------------------------------------------------------------
    
    N
    -
    B
    N                                                                    
    
    A
    Y                                                                    
    

    The index does not store registrations for the lines where all components of the index are null, then the optimizer needs to see that the columns are not nullable to be able to use an index scan.

Maybe you are looking for

  • How to delete all my pictures on my phone s6?

    How to delete all my photos on my pone 6s?

  • question about a new external hard drive partitioning

    I just bought a TB G-Technology G 4 USB 3.0 drive to replace my old Lacie which is way to small.  It has served me well. I Google search on the net and research here in the discussions, I should create partitions, and if so, how, a few observations a

  • Setting up Gmail in Mail app

    Hi all. I tried to put that in some sort of software forum, but there is none for the Mail application. I tried to set up my gmail accounts (I have three of them) in the mail, not including any chance application. I managed to get two of them install

  • How can I do things once per second?

    I need to do things that would take more than a second. And they need to be repeated every second. How can I make it happen in a specific calendar?

  • Cannot run the install.exe file...

    I have a PC laptop toshiba a500-025 with the following specifications: 4 GB of ram Radeon ati hd4570 512 MB 2.1 intel centrino Vista 64-bit I downloaded assassins creed... and when I click on the install.exe file, it says the following: "the version