Map/Reduce and Affinity

First of all, let me describe use case.
Where are two types of objects (and accordingly two distributed caches): Child(cid, pid, cdata1, ....) and Parent(pid, pdata1, ...). Child's key have key association so, child objects stored in the same partition where its parent stored. So, I need to run the query against parents with several constraints applied. These set of constraints contains constraint which is based on data from corresponding child objects. How to do it efficiently without precalculation and putting precalculated value in Parent objects and applying constraint to it?
Example:
User(uid, firstname, lastname) and Address(aid, uid, zip) (user can have several addresses)
query is: select all users which firstname equal to 'John' and have address with zip equal to '65535'
The second case is pretty the same, but the query is slight different: select all addresses with zip equal to '65535' and which user's firstname equal to 'John'

Hi,
I was asking about immutability of fields used to establish the join relationship between the parent and the child and the rest of the attributes in one of the tables.
But it makes too many restrictions, I believe.
Ok, in the general case of map reduce you can just do an aggregation and idempotently put the reduced info to a cache in a DIFFERENT cache service from what you aggregating in an idempotent way (always the same data on the same key even for retries), which also means that the granularity of such data must be so that an entry of the reduced data must be reduced from entries only in a single partition of the mapped data if this is not the final reduce step.
Let's look at an example: you are doing a two step map/reduce.
First step maps entries like this:
Mapped data keys are:
P1K1
P1K2
P2K3
P3K4
where with the notation P2K3 I mean that Coherence assigned the key to partition 2. This assignment has to do with Coherence's key-partitioning strategy (which is pluggable, by the way), you cannot explicitly decide it on an entry-by-entry basis.
Let's assume that P1 and P2 are at the time both owned by node X, P3 is owned by node Y.
When you are doing an aggregation of this cache, it is possible (likely) that your aggregator on node X will get entries for keys P1K1, P1K2, P2K3.
Your aggregator must create a reduced result for (P1K1 + P1K2) which is a separate from the reduced result entry from P2K3. That result entry must only depend on the data in the entries from which it was reduced respectively (P1K1 + P1K2 or P2K3, but not both) and not on anything else. This is because Coherence may reexecute that
aggregation later on a node which has only P1 but not P2 if node X died, and the cache might also have one of the reduced results and you would end up either with corrupt results or you would have to write more complex code to cover this case.
You have to put these RP1K12, RP2K3, RP3K4 reduced entries to a cache separate from the mapped cache so that you are not facing the possibility of deadlocks or thread-starvation in the service of the aggregated cache.
This unfortunately will mean that the reduced result will likely not be on the same node as the mapped data, and that would mean lower performance compared to if you were able to do this in the same node in case your both caches you want to join together were on the same node.
Another approach, for affine data is that from the aggregator you locally enqueue the reduced data to a local queue from which its consumer fires off the second step of aggregations to the other cache to be mapped which aggregation holds the first reduced data in its state. You will have to care about duplicate checking of partial reduced data on the final reduce step so each step of your reduced data must carry its source partitions from all preceeding steps.
I will possibly show an example of this in a couple of days, but I will have to iron out a couple of things, first, like ensuring at-least once guarantees for starting the next step.
Alternatively you can build something similar with InvocationService which helps a bit by providing an asynchronous invocation possibility.
Best regards,
Robert

Similar Messages

  • I am facing a strange problem on new iphone 5 that I bought last week. The maps app and the places in photo gallery shows the pin and my location, however there is no information of locations. Tried to close the apps, phone restart, reset etc. Please help

    I am facing a strange problem on new iphone 5 that I bought last week. The maps app and the places in photo gallery shows the pin and my location, however there is no information of locations. Tried to close the apps, phone restart, reset etc. I am accessing it via strong wireless connection and it works fine on other devices. Please help.

    zapgrap wrote:
    there is no information of locations.
    Then no information exists.  Use the Report a Problem button within the app to report it.

  • What is difference between  Service map iview and Workset Map iview

    Hi Experts,
                        Can anyone tell me the difference between  service map iView and Workset Map iView.
    When I am creating these iViews, its seams both are same. I canu2019t find difference still, can anyone help me out of this
    Thanks in Advance
    Janardhan

    Hi,
    Service Map Iview:The Service Map iView is an ERP-specific variant of the portal Workset Map iView. It serves as a central point of entry and guided access to the services of SAP service modules such as the Manager Self Service (MSS) module, or the Employee Self Service (ESS) module.
    Workset Map iview:A Workset Map is the equivalent of a site map, providing users with explicit information on the functionality that is available in a given workset. It is based on an iView, and serves as a central point of entry and guided access to the contents of a workset.
    if you want to more info pls go thr the below thread
    Workset Map iView
    i hope it will help you
    Thanks,
    Sreeni.

  • How Do RoboHelp 9 WebHelp Generated Files Handle Map IDs and Aliases?

    The text below was written by our team's developer/architect. I am the help author who uses RoboHelp to write content and generate the help files, but I am clueless how it all gets generated and is deployed. Please help. We use RoboHelp 9. I use it in Windows XP and our app and help run on IE 7, 9, and Firefox (multiple versions).
    "Our application uses the numeric identifiers associated with the Map ID. For example, to get to the <appname>_home_page.htm file, we use the number 1053. <appname> = pecs, in this example.
    All of this is used in a call to a RoboHelp method defined in the RoboHelp_CSH.js file. The mehtod we are calling is the RH_ShowHelp() JavaScript method and the code to perform the call, when you click on Page Help, is this:
    RH_ShowHelp(0, ''/pecsHelp/index.htm>pecsHelp',HH_HELP_CONTEXT,topic);
    Topic is translated to the Map ID number for the page help. HH_HELP_CONTEXT is defined in the RoboHelp_CSH.js file. This method translates into a URL and from what I have seen, the URL that gets generated is this:
    http://{server}[:port]/pecsHelp/index.htm/{server}[:port]/pecsHelp/index.htm#<id=1053>>pecsHelp
    Server and port get replaced with the appropriate values. I have no clue how id=1053 is supposed to get translated to mean "pecs_home_page.htm". If you check the PECS_help.h file, you will see the following entry:
    #define PECS_Home_Page1 1053
    Then in the RoboHelp alias file (PECS 3.0.ali), the following line is in the file:
    <alias name="PECS_Home_Page1" link="pecs_home_page.htm"> </alias>
    But both of these files are used during the WebHelp generation process and I don't know how the WebHelp generated files handle the Map ID and aliases."

    You need to assign the numbers you find in the pecs_help.h file to topics in your help. You do this in Context Sensitive Help > Map Files > All Map IDs. (From RH7, but I assume the location is similar in RH9.) This creates the entries in the .ali file.
    Peter Grainge suggests a couple of sites to read for a greater understanding here:
    http://www.grainge.org/pages/authoring/calling_webhelp/using_map_ids.htm
    (Although the second  site is based on RH X5, the basic concepts and procedures should be very similar. )
    HTH,
    Amber

  • Google Maps Navigation and Google Music problem

    Hello,
    I love the LG G2 but it has a few concerning issues. First, is the squealling, hissing, cracking, popping, etc. during phone calls, but I have seen that brought up by others.
    The second problem that I've discovered, and the most upsetting to me, is that when using the Google Maps Navigation and Google Music All Access at the same time, whenever the navigation voice instructs a direction, the music shuts off. It is then silent until the navigation voice instructs the next direction OR when a new track starts. This was not a problem on my droid bionic, so it must be an LG G2 issue. This is a huge problem to me as I travel a lot for work and usually use GPS to find where I'm going, and I subscribe to Google Music All Access so I listen to music in the car. This problem makes that impossible to do (I have to choose).
    A related issue, is that my Alpine CD player displayed track information (Artist, Song, Album) with my Droid Bionic, but with the LG G2 it displays 'UNKNOWN'. I find it hard to believe that a two year old phone has capabilities that a brand new phone wouldn't, so I'm hoping these issues will be fixed with a software patch.
    Has anybody else experienced these issues, or does it work fine with your LG G2?

    Hawaii is a part of the USA so you will be fine there. Mexico on the other hand, you will be roaming for data there and could see extra charges for international data.

  • How to map lattitude and longitude on a map in j2me.

    hi all,
    i am new to this forum and new to j2me.
    i am developing a pplication to track location of a gps mobile phone.
    i am using wtk2.5.1 jsr179 to develop it
    i know how to get location of a mobile phone but i cant find any method how to map those lat long coordinates on a map...
    please help me out if anyone knows about it..
    thanx

    Hi,
    I'm afraid that this is large problem... and it's not related to J2ME.
    The first question is whether you want to use some map provider and its API or you have a bitmap and you want to place a cursor of your position in the map.
    In the first case find an API to use (I don't know any). In the second case you have to understand what the GPS coordination mean, know projection type of the used map, then find and use the transformation formulas to transform GPS coordinates to map coordinates and vice versa.
    Regarding the GPS coordinates start here: http://en.wikipedia.org/wiki/World_Geodetic_System
    Regarding the projections - my map I tried to use in my application uses Lambert conic conformal projection http://en.wikipedia.org/wiki/Lambert_conformal_conic_projection
    but it may differ from map to map.
    Enjoy :-)
    Rada

  • How to create the floating message view like Map app and Safari does?

    Hi, guys,
    I am trying to implement a information message view like the Map app and the Safari does.
    Here is the description:
    1. When you drop a pin in the Map app and then tap on the pin, you always can see a floating transparent message on the top of the pin.
    2. When you tap and hold on a link in the Safari app for a few seconds, you can also see a same message view like the Map app does and without showing the disclosure button.
    All I want is such kind of thing, but I had look through out the documentation and the Interface Builder components list. I can not find such a component.
    Does anybody has a similar experience on implement this?
    Thank you guys..

    You're not going to find a control to do this for you. You will have to create a subview and set the properties (color, frame, etc) yourself.

  • HT5595 I used to be able to reduce and scale a photo to use in my wallpaper in my iPhone 5 before IOS7.  Now I am not able to reduce the photo enough.  Anyone know what to do?

    I used to be able to reduce and scale a photo to use in my wallpaper in my iPhone 5 before IOS7.  The photo does not reduce as much now.  Any suggestions?

    Try turning off the parallax effect. This will shrink the images.

  • How to capture mapping error and able to send it..

    Hi Friends,
    We have a requirement, where in, if a mapping fails due to missing required element or improper formation of the source xml message, we need to capture this and need to create an error message, which contains the error description as one of the elemnets and send it to the concerned system back. Basically, it is to let the sending system know that, what went wrong.
    Is there any api available which can capture the mapping error and which could be used under java mapping used for exception handling? Any pointers in this regard would be of utmost helpful.
    Regards,
    Vijay

    Vijay,
    You can throw some exceptions like mentioned in the weblog:
    /people/alessandro.guarneri/blog/2006/01/26/throwing-smart-exceptions-in-xi-graphical-mapping
    /people/michal.krawczyk2/blog/2007/04/26/xipi-throwing-generic-exceptions-from-any-type-of-mapping
    Once you see this message your support guys should check the message and let the sender system side know about this.
    ---Satish

  • Mapping enter and esc to ok and cancel buttons

    Hi,
    Does java's fine API offer any method of mapping Enter and ESC to OK and Cancel buttons in a customized JDialog?
    The current way I'm doing it is through a brute force of adding a KeyListener to every component in the dialog box (in an automated way), is there another way?
    Any suggestions would be appreciated.

    Uh oh, should I be scared because he knows more about
    Swing than just about anyone?
    Yes. Because if you really get stuck then he won't help you and then you are doomed.
    If anybody was rude it was him, and if anybody is an
    idiot it's you. See how easy it is to make claims
    without providing any reasons or rationale?Reasons and rationale have been provided but I guess you didn't grasp them the first go around so here goes.
    1) You were impatient
    You waited 30 minutes before whining and bumping. That is impatient. Nobody is being paid to deliver answers to you.
    2) You posted in the wrong forum.
    This is not the Swing forum is it? No it is not.
    3) You should learn to search
    If you had searched for even up to 15 minutes (and you wouldn't have needed this long) then you would have had your answer in half the time. Searching saves YOU time.
    4) You were rude
    When the facts (and please note the use of the word "fact" not personal opinion) above were pointed out to you then you were rude.
    Finally the "you are an idiot" problem. I will give you this is the most subjective of the lot although given that you cannot dispute ANY of the above facts (although you seem to be trying and that's helping to make the case that you're quite the idiot) that's really not saying much.
    However, it seems to me that if Person A wants the assistance of Person B (who is a valuable resource of information for person A and others) it does not seem wise for Person A to be rude to person B. So in the case of Person A who is rude to Person B who they are relying on as a free resource we can make the assertion that Person A is an idiot.
    In case you couldn't follow that you are Person A.

  • Problem in getting Portal Mapped user and password in Web Dynpro iView

    I am developing a webdynpro iview.My app need to read mapped user and password form a system in Portal runtime.
    I used the following codes in my Web Dynpro java program:
         IWDClientUser user = WDClientUser.getCurrentUser();
         IUser iuser = user.getSAPUser();
         IUserMappingService iums = (IUserMappingService)WDPortalUtils.getServiceReference(IUserMappingService.KEY );
    //     IUserMappingService iums = (IUserMappingService)
    //     PortalRuntime.getRuntimeResources().getService(IUserMappingService.KEY);
         IUserMappingData iumd = iums.getMappingData (systemalias, iuser);
         Map map = new HashMap ();
         iumd.enrich(map);
         String userid = (String)map.get( "user" );
         String pwd = (String)map.get ("mappedpassword");
    I've add a sharing references in project properties,the value is "PORTAL:sap.com/com.sapportals.portal.prt.service.usermapping.IUserMappingService"
    But when I run the iview on my Portal, it goes wrong, the message is:
    com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to prepare application ''local/HomePage'' for startup. Reason= Clusterwide exception: Failed to start dependent library ''com.sapportals.portal.prt.service.usermapping.IUserMappingService'' of application ''local/HomePage''. Status of dependent component: STATUS_MISSING. Hint: Is the component deployed correctly on the engine?
        at com.sap.engine.services.webdynpro.WebDynproContainer.prepareStart(WebDynproContainer.java:1490)
        at com.sap.engine.services.deploy.server.application.StartTransaction.prepareCommon(StartTransaction.java:231)
        at com.sap.engine.services.deploy.server.application.StartTransaction.prepareLocal(StartTransaction.java:184)
        at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesLocal(ApplicationTransaction.java:365)
        at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:117)
    Anybody can help me?And are there anyother methods can get mapped user and password of Portal systems in Web Dynpro JAVA.

    Hi Wayne,
          Did you added com.sap.security.api.jar to your webdynpro project. if not follow this steps.
    1. Right-click the project in Eclipse or SAP NetWeaver Developer Studio.
    2. Select Properties.
    3. Choose Java build path -> Libraries -> Add Variable -> Select variable WD_RUNTIME -> Extend -> com.sap.security -> lib -> com.sap.security.api.jar.
    I hope this should solve your problem.
    Regards, Suresh KB

  • Nokia maps 1.0 - india maps, Maharashtra and Goa

    Hi all,
     I want to download india maps and specifically maps of Maharashtra and Goa. I bought a Nokia C2-03 (dual-sim) recently and have been trying to download maps via Nokia Ovi Suite 3.1.1.90 but it has been a failure. 
    The device itself does not have much memory but do have a memory card. Does anybody know how :-
    a. I can download and install the Maharashtra and Goa map in the memory card ?
    b. A link from where I can download the map. I did see this link given /t5/Maps-Navigation-and-GPS/Maps-Data-File-size-discrepancy/m-p/1166517/message-uid/1166517/highligh... but unfortunately it seems for a different version of Nokia maps . 
    c. Am I correct in assuming its Nokia maps 1.0 . This I came to know via Menu > Maps > Options > About where it says Maps 1.0 www.nokia.com/maps/support
    maps.nokia.com
    copyright 2010 navteq  All rights reserved www.navteq.com
    All and any help and clarity on the above would be helpful.

    @shirishag75
    Welcome to the forum!
    Unfortunately S40 devices use Nokia Maps 1.0 for which available mapping is a lot less detailed; presumably  you have inserted memory card and opened Nokia Maps application at least once upon your C2-03 to initialise application? At this point Ovi Suite > Maps should recognise memory card and offer you maps to download but not always so.
    That said Series 40 Ovi Maps 2.1 is variable in implementation and if device supplied with local maps installed upon memory card there doesn't seem an issue adding more maps but real issues if no maps with it sometimes.
    You could look at this Nokia resource:http://europe.nokia.com/support/product-support/maps-support/how-to/how-to-use-maps-for-s40
    Happy to have helped forum with a Support Ratio = 42.5

  • Map Loader and Check In apps

    My 808 pureview crashed a couple of weeks ago and now both the map loader and check in apps are not working I get a system error on the Check In app and a map loader error message when I try opening that app. I've done a firmware reinstall to see if that would sort it but it hasn't. I can only conclude that the two files are corrupted. Can anyone help?if it comes to it I will uninstall the entire Maps Suite but there is nothing listed in the Uninstall Applications list to do this. Will I have to find the individual files and delete them? If so can anyone tell me where they are in the C directory?
    Thanks

    Check in has been discontinued since version 3.9.95.However you can get it by searching over the net via Google search. I am using it but cant give You download links since that would be against forum rules.
    In Love With My C6-01:Now running on Nokia Belle!

  • Citrix mapped drives and crystals merged files

    Has anybody come across an issue with Citrix mapped drives and crystals merged files.
    I have updated the crystal DLL's my application uses to 11.5 and created a new setup kit to distribute my app including these new DLLu2019s along with a merged file call crstalreports11_5_net_2005.msm the Visual Studio setup app added. The installation runs fine on the Citrix server and application runs as well.  When I come to run any report on the Citrix server I get an error u201Cprocedure call or argument is not validu201D.  If I remove the mapping to the drives the reports run without any errors.
    I need to keep the mapped drives on Citrix so removing the mappings is not really a solution to my problem (which is a shame really)
    I am using Visual Studio 2005, Crystal Report XI and Citrix 4.5
    Any help would be gratefully received

    See if Process Monitor will help you trace down to where this is happening. Process Monitor can be downloaded from here:
    http://technet.microsoft.com/en-ca/sysinternals/bb896645.aspx
    Make sure you filter for your process name as Proc Mon creates rather large log files. Once you have a log, search for errors such as Access Denied, etc.
    Ludek

  • Mapping Node and Attributes

    Hello all,
                I am using Process Composer for a process design.
    I have a human activity and an automated acitivity.
    Human Activity                                                 Automated Activity
    + Type Code (node)----
    Type Code (node)
       - TypeCode (attribute)----
    text() (attirbute)
    Above shows the mapping. Now I map the node and then i map the attribute. I save it.
    The above mapping is for input mapping of the automated activity. Suppose if leave the mapping screen and come back, the mapping is automatically gone. Though i saved it. The TypeCode (node) is mapped to text() with an error (after i change screen. That will be error of course).
    Have any of you faced any similar issue before?

    Problem solved.
    1. The cardinality of the nodes was not matching.
    2. Attributes were matched instead of matching nodes.
    Thnks

Maybe you are looking for

  • IMac 17" Intel CD: display doesn't work

    ciao, today when I switched my iMac on the display remained dim, just like if it was off, while everything else worked OK. so the display was black like it was off, but then I noticed that if I looked very carefully I could see the login box and I ma

  • Automatic shutting down of ipod touch 5Gen

    Just now i checked my ipod touch and suddenly i cannot open it. Possibility it was automatically shoutdown. Don't know what to do. Please help me.

  • Insert/Retrieve chinese character into/from MS Access

    Hi all, I want to know if there is concrete answer for the problem of maintaining chinese character in MS Access using jdbc/odbc. I have searched the forum but seems there is no working solution, am I correct? I am writing a db maintenace program in

  • Global Event Handling

    I am writing a program that needs to detect keystrokes and mouseclicks globally. Right now I am using KeyListener and MouseListener to keep track of all keystrokes and mouseclicks, but that only handles keystrokes and mouseclicks in the window of my

  • Imovie 3 crops imported still photos

    I'm trying to make a slide show of still images. Imovie 3 crops my imported photos (NOT from iphoto) to fit screen, instead of shrinking photos to fit. How to correct? Thanks.