How to prevent OLAP from doing unneccessary aggredations during data load?

Hi,
I'm trying to create a relatively simple two-dimensional OLAP cube (you might want to call it "OLAP square"). My current environment is 11.2EE with AWM for workspace management.
One dimension is date, all years->year->month->day, the other one is production unit, implemented as a hierarchy with a certain machine at the bottom level. The fact is defined by a pair of  bottom-level values of these dimensions; for instance, a measure is taken once a day from each machine. I would like to store these detailed facts in a cube together with aggregates, so they could be easily drilled down to without querying the original fact table.
The aggregation rules are set to "Aggregate from level = default" (which is day and machine respectively) for both of my dimensions, the cube is mapped to fact table with dimension tables, the data is loaded, and the whole thing is working as expected.
The problem is with the load itself, I noticed it being too slow for my amount of sample data. After some investigation of the issue I found out a query in cube_build_log table, a query the data is actually being loaded with.
<SQL>
  <![CDATA[
SELECT /*+  bypass_recursive_check  cursor_sharing_exact  no_expand  no_rewrite */
  T4_ID_DAY ALIAS_37,
  T1_ID_POT ALIAS_38,
  MAX(T7_TEMPERATURE)  ALIAS_39,
  MAX(T7_TEMPERATURE)  ALIAS_40,
  MAX(T7_METAL_HEIGHT)  ALIAS_41
FROM
  SELECT /*+  no_rewrite */
    T1."DATE_TRUNC" T7_DATE_TRUNC,
    T1."METAL_HEIGHT" T7_METAL_HEIGHT,
    T1."TEMPERATURE" T7_TEMPERATURE,
    T1."POT_GLOBAL_ID" T7_POT_GLOBAL_ID
  FROM
    POTS."POT_BATH" T1   )
  T7,
  SELECT /*+  no_rewrite */
    T1."ID_DIM" T4_ID_DIM,
    T1."ID_DAY" T4_ID_DAY
  FROM
    RI."DIM_DATES" T1   )
  T4,
  SELECT /*+  no_rewrite */
    T1."ID_DIM" T1_ID_DIM,
    T1."ID_POT" T1_ID_POT
  FROM
    RI."DIM_POTS" T1   )
  T1
WHERE
  ((T4_ID_DIM = T7_DATE_TRUNC)
    AND (T1_ID_DIM = T7_POT_GLOBAL_ID)
    AND ((T7_DATE_TRUNC)  IN  < a long long list of dates for currently processed cube partition is clipped >  ) ) ) 
GROUP BY
  (T1_ID_POT, T4_ID_DAY) 
ORDER BY
  T1_ID_POT ASC NULLS LAST ,
  T4_ID_DAY ASC NULLS LAST ]]>>
</SQL>
Notice T4_ID_DAY,  T1_ID_POT in the top level column list - these are bottom-level identifiers of my dimensions, which means the query isn't actually doing any aggregation here, as there is only one fact per each pair of (ID_DAY, ID_POT).
What I want to do is to somehow load the data without doing this (totally useless in my case) intermediate aggregation. Basically, I want it to be something like
SELECT /*+  bypass_recursive_check  cursor_sharing_exact  no_expand  no_rewrite */
  T4_ID_DAY ALIAS_37,
  T1_ID_POT ALIAS_38,
  T7_TEMPERATURE  ALIAS_39,
  T7_TEMPERATURE  ALIAS_40,
  T7_METAL_HEIGHT  ALIAS_41
FROM etc...
without any aggregations. In fact, I can live even with this loading query, as the amounts of data are not that large, but I want things to work the right way (more or less ).
Any chance to do it?
Thanks.

I defined a primary key over all the dimension keys in the fact table but for some reason the build still uses an aggregation. Probably because the aggregation operator for the cube I'm currently playing with is actually set, and I don't see a way to undefine it from the UI toolbar you are referring to. This is a piece of mapping section from the workspace file I exported using AWM.:
<CubeMap
      Name="MAP1"
      IsSolved="False"
      Query="POT_BATH_T"
      AggregationMethod="SUM">
Looks like the build aggregates because it is clearly told to so by the AggregationMethod attribute? Any way to override it?

Similar Messages

  • Using Yammer for page commenting in SharePoint Online, how to prevent user from doing it wrong?

    I am trying to use Yammer for a per-page comment platform in a SharePoint Online environment. This seems to require placing a Yammer embed in each page
    and configuring the embed to use Open-Graph. (see further below for the embed code details I'm using)
    When a user begins typing their comment, a gray box also appears (not sure the technical name for it) giving the user the option to click "x" to close it. In the screenshot a little below,
    I've put a green-box around it.
    If the user clicks the x to close that little piece, they can still submit a comment, but it doesn't get added to the page. There's no feedback that indicates this is what happens.
    It is distracting and adds unnecessary complexity to what should be a simple task of appending a comment to this page's conversation. In fact, everything I put a red box around in the screen shot
    would ideally be hidden from the user.
    Can we hide this complexity (everything in red box) from the commenter completely?
    If not, how can we prevent the commenter from clicking the "x"
    and thusly quietly breaking their feedback?
    Here is my Yammer embed code:
    <div id="embedded-feed" style="height:400px;width:500px;"></div>
    <script type="text/javascript" src="https://assets.yammer.com/assets/platform_embed.js"></script>
    <script type="text/javascript"> yam.connect.embedFeed({
    container: "#embedded-feed"
    , network: "myyammernetwork.com"
    , feedType: "open-graph"
    , config: {
    use_sso: false
    , showOpenGraphPreview: false
    , header: false
    , footer: false
    , promptText: "Comment on this page..."
    , objectProperties: { url: window.location.href, type: "page" }
    </script>

    Hello Jason,
    >> Is there a way in APEX to disable the browser back button?
    This is not an APEX issue, but a general browsers one. This is an old problem, without any good solution. Usually, if this is a critical issue (like in payment pages etc.) the course of action is indeed to prevent the page from being cached by the browser, and mark it as expired.
    >> however I cannot get the above to work; … by placing it between <style></style> tags
    You should use the ‘meta’ tag for these attributes. The following might help you with that - http://www.htmlgoodies.com/beyond/reference/article.php/3472881 .
    Hope this helps,
    Arie.

  • When I disconnect my iphone 3gs(iOS) from computer, the device disappears from my itunes. This prevents me from doing a wireless sync. how do i fix it so that my device stays on itunes without having to plug it in all the time?

    When I disconnect my iphone 3gs(iOS) from computer, the device disappears from my itunes. This prevents me from doing a wireless sync. how do i fix it so that my device stays on itunes without having to plug it in all the time?
    it worked the first few times i did it but the next day after i closed out of itunes once, the device only appears when i plug in my phone.

    Whenever a menu choice is grayed out, that is because you have Restrictions turned on in Settings.  Be sure to turn it off.
    You are confusing an itunes store account with an icloud account.  You two can continue using the same ID for itunes (thus sharing purchased music, apps, etc.), but you really should have separate accounts (different IDs) for icloud, since an account is intended for one user to keep his/her devices in sync.
    To create a new icloud account, go to
    http://www.apple.com/icloud/setup/
    Then go to Settings>icloud and scroll to the bottom of the screen and tap Delete Account.  (have restrictions turned off)  That will disconnect the device from the account but will not delete data in icloud or other devices.  Then sign in using the new ID.

  • I use to administrate my DSL modem via an ip-address. When I enter it into FF8 I am asked where to save the file. Why and how can I prevent FF8 from doing that?

    I use to administrate my DSL modem via an ip-address. When I enter it into FF8 I am asked where to save the file. Why and how can I prevent FF8 from doing that?
    And now anytime I am entering an ip-address I am asked if I want to download the file.

    It happens when the modem server doesn't send the file as text/html, but with another MIME type.<br />
    I tried the index.html addition in case the server might send that file as text/html.<br />
    If your DSL modem has a support website then you can try to ask there for advice about how to configure the modem server.

  • How to prevent users from creating new folders in share folder directory?

    Hello guys
    I'd like to know How to prevent users from creating new folders in share folder directory but still keep their power of creating new folders in their personal 'my folder'?
    I tried changing the 'manage privilage ---- create folder' to deny certain user accounts, but by doing so, it also stops the user from creating new folders in their 'my folder', which is not good..
    I also tried going into these share folders and tried different access types such as 'change/delete', 'read', 'traverse folder' etc, but none of it work ideally. The 'change/delete' access still allows them to create new folders, 'read' access prevents creating new folders but also take away their power of saving reports..
    Any thoughts on how to take away their ability to ONLY create new folders in share folder areas without affecting their other privileges?
    Please advise
    Thank you

    Easy, on the shared folders root folder only give them 'read' or 'traverse folder' but on the the folder inside the shared folders root folder give them 'change/delete'. That means they can change anything inside those folders but not create any folders at the shared folders root level.

  • I'm an American living on a timed (though long-term) assignment in Ireland. I have both American and Irish bank accounts and addresses. I have two Qs. 1. Can I use the US Adobe site when in Ireland? Or will my physical location prevent me from doing so? 2

    I'm an American living on a timed (though long-term) assignment in Ireland. I have both American and Irish bank accounts and addresses. I have two Qs. 1. Can I use the US Adobe site when in Ireland? Or will my physical location prevent me from doing so? 2. I am working for a not-for-profit organization. Is there a special pricing plan for non-profits, similar to the plans for students, small business, etc? Thanks for whatever help you can give me. (P.S. As a potential customer and past user of Adobe products for 15  years, I find it INCREDIBLY FRUSTRATING that I cannot speak with any Adobe representative, but am continually re-routed instead to a public forum to get what I hope will be accurate information. Not good, Adobe. Your products are amazing. Your customer service leaves a lot to be desired. I don't mean that with disrespect, but as honest feedback.)

    Hi bookchic
    Thanks for your feedback.
    Non-profit pricing is available to eligible institutions via the VIP program which is sold by resellers - see Eligibility guide
    For details of resellers please check here: Adobe Platinum Partners – Value Incentive Plan
    If you wish to purchase an individual plan via Adobe.com the country of your Adobe ID will determine which site you order from.
    Kind regards
    Bev

  • How to prevent apps from syncing in the new version of itunes?

    Hey there.
    I brang my macbook to Applestore cause it had a problem and they downloaded the latest version of itunes. Everything's fine and my music, videos and apps are in the new itunes like before. But now, when I want to sync my iphone, a pop window asks me to give the password of the itunes account I used to download some of my apps or it will delete them and their data. The problem is that one of these accounts is an old friend's one and I actually lost all contact with him. So basically now I can't sync my iphone at all or it will delete all my apps.
    Has anyone any idea how to sort that out? Or at least knows how to prevent apps from syncing in this new version of itunes?
    Thanks for your help

    Onthe top menu
    View > Show Status Bar.
    The grey bar will now appear at the bottom with the info you want

  • How to prevent Oracle from using an index when joining two tables ...

    How to prevent Oracle from using an index when joining two tables to get an inline view which is used in an update statement?
    O.K. I think I have to explain what I mean:
    When joining two tables which have many entries sometimes it es better not to use an index on the column used as join criteria.
    I have two tables: table A and table B.
    Table A has 4.000.000 entries and table B has 700.000 entries.
    I have a join of both tables with a numeric column as join criteria.
    There is an index on this column in table A.
    So I instead of
      where (A.col = B.col)I want to use
      where (A.col+0 = B.col)in order to prevent Oracle from using the index.
    When I use the join in a select statement it works.
    But when I use the join as inline view in an update statement I get the error ORA-01779.
    When I remove the "+0" the update statement works. (The column col is unique in table B).
    Any ideas why this happens?
    Thank you very much in advance for any help.
    Regards Hartmut

    I think you should post an properly formatted explain plan output using DBMS_XPLAN.DISPLAY including the "Predicate Information" section below the plan to provide more details regarding your query resp. update statement. Please use the \[code\] and \[code\] tags to enhance readability of the output provided:
    In SQL*Plus:
    SET LINESIZE 130
    EXPLAIN PLAN FOR <your statement>;
    SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);Usually if you're using the CBO (cost based optimizer) and have reasonable statistics gathered on the database objects used the optimizer should be able to determine if it is better to use the existing index or not.
    Things look different if you don't have statistics, you have outdated/wrong statistics or deliberately still use the RBO (rule based optimizer). In this case you would have to use other means to prevent the index usage, the most obvious would be the already mentioned NO_INDEX or FULL hint.
    But I strongly recommend to check in first place why the optimizer apparently seems to choose an inappropriate index access path.
    Regards,
    Randolf
    Oracle related stuff:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle:
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • HT4314 I have loaded the game Boggle onto an ipad and if I want to play it info from EA prevents me from doing so?

    I have loaded the game Boggle onto an ipad and if I want to play it info from EA prevents me from doing so?

    Yes, if you have an appleTV it would be easier.   WIthout airplay, you can use APP called BEAMER, beam any video file to your AppleTV hooked to you TV set.
    It would stream more smoothly if you put each video file as you go onto the Mac from the HD, and erase after youre done watching same.
    http://beamer-app.com

  • Itunes launches itself and starts playing even when my laptop is closed, but I can still hear it. I can't figure out how to keep it from doing it

    itunes launches itself and starts playing even when my laptop is closed, but I can still hear it. I can't figure out how to keep it from doing that.

    See if a device is attached and "open iTunes when iPod is connected" is selected. https://discussions.apple.com/message/16483979#16483979
    Check for other iTunes preference settings that might cause this.
    Hacks to stop Bluetooth speaker from starting iTunes -
    http://forums.macrumors.com/showpost.php?p=19045335&postcount=4
    LincDavis June 2014 post - https://discussions.apple.com/message/25998941

  • How to prevent iCloudDrive from waking computer from sleep?

    My PC wakes up periodically from sleep. After the checking the event logs, the logs show that iCloudDrive.exe process is causing the computer to wake up from sleep. I do not want to disable all system wake timers, but I do not know how to prevent iCloudDrive from waking up the computer. The expiration date keeps changing forward.
    in Command Prompt (admin):
    C:\windows\system32>powercfg -waketimers
    Timer set by [PROCESS] \Device\HarddiskVolume3\Program Files (x86)\Common Files\
    Apple\Internet Services\iCloudDrive.exe expires at 5:26:25 PM on 4/21/2015.
    In Event Viewer:
    Log Name:      System
    Source:        Microsoft-Windows-Power-Troubleshooter
    Date:          4/12/2015 3:21:56 PM
    Event ID:      1
    Task Category: None
    Level:         Information
    Keywords:     
    User:          LOCAL SERVICE
    Computer:      WIN-CBF43TVLMNC
    Description:
    The system has returned from a low power state.
    Sleep Time: 2015-04-12T18:24:08.280458300Z
    Wake Time: 2015-04-12T19:21:44.326107700Z
    Wake Source: Timer - iCloudDrive.exe
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-Power-Troubleshooter" Guid="{CDC05E28-C449-49C6-B9D2-88CF761644DF}" />
        <EventID>1</EventID>
        <Version>2</Version>
        <Level>4</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2015-04-12T19:21:56.645016400Z" />
        <EventRecordID>2838</EventRecordID>
        <Correlation ActivityID="{0D44318C-F225-4D0E-AE0B-76736663674D}" />
        <Execution ProcessID="1888" ThreadID="848" />
        <Channel>System</Channel>
        <Computer>WIN-CBF43TVLMNC</Computer>
        <Security UserID="S-1-5-19" />
      </System>
      <EventData>
        <Data Name="SleepTime">2015-04-12T18:24:08.280458300Z</Data>
        <Data Name="WakeTime">2015-04-12T19:21:44.326107700Z</Data>
        <Data Name="SleepDuration">100</Data>
        <Data Name="WakeDuration">826</Data>
        <Data Name="DriverInitDuration">601</Data>
        <Data Name="BiosInitDuration">909</Data>
        <Data Name="HiberWriteDuration">0</Data>
        <Data Name="HiberReadDuration">0</Data>
        <Data Name="HiberPagesWritten">0</Data>
        <Data Name="Attributes">25612</Data>
        <Data Name="TargetState">4</Data>
        <Data Name="EffectiveState">4</Data>
        <Data Name="WakeSourceType">5</Data>
        <Data Name="WakeSourceTextLength">15</Data>
        <Data Name="WakeSourceText">iCloudDrive.exe</Data>
        <Data Name="WakeTimerOwnerLength">96</Data>
        <Data Name="WakeTimerContextLength">0</Data>
        <Data Name="NoMultiStageResumeReason">0</Data>
        <Data Name="WakeTimerOwner">\Device\HarddiskVolume3\Program Files (x86)\Common Files\Apple\Internet Services\iCloudDrive.exe</Data>
        <Data Name="WakeTimerContext">
        </Data>
      </EventData>
    </Event>

    In the Bluetooth System Preferences click the Advanced button, then uncheck the Allow Bluetooth Devices To Wake This Computer checkbox.

  • How to prevent B1 from populating the grid with components?

    Hello group,
    We have customized a form that pops up when user enters a parent item (of a template-type BOM) in the quotation grid.  The form displays the component items and lets the user mark which items to "paste" onto the quotation.  However, B1 automatically populates the grid with the component items once focus moves away from the item code column. 
    <b>How to prevent B1 from populating the grid with components <i>while</i> retaining the parent item in the item code column?</b>  I've tried trapping the Validate event, etc. with no success.

    Instead of setting the parent item up as a template type BOM, you could set up the list of parent/child items on a user table and use this user table to display the items in your pop-up screen.  As the parent item would no longer be a template BOM, Business One would no longer automatically popuplate the grid, and you could write your own code to add only the items selected in your pop-up screen into the grid.
    John.

  • Gmail makes a lot of drafts when I am writing an email. How to prevent that from happening?

    When I wite email I have all the time drafts copied. How to prevent his from happening?

    writing Email produced in multiples in all mail
    Multi Copies of Drafts To Gmail Server

  • How to prevent mail from breaking web links into multiple lines?

    Hey all!
    When I send someone a long web link that is pretty long, Mail breaks it into several lines and at the end the user cannot use this link right away, he needs to "assemble it by parts" first.
    Is there a way to prevent mail from doing this?
    Thanks,
    Artemiy.

    Also you could use tinyurl - this is exactly what its designed for.
    ie
    Turn this URL:
    http://www.mapquest.com/maps/map.adp?ovi=1&mqma
    p.x=300&mqmap.y=75&mapdata=%252bKZmeiIh6N%252bI
    gpXRP3bylMaN0O4z8OOUkZWYe7NRH6ldDN96YFTIUmSH3Q6
    OzE5XVqcuc5zb%252fY5wy1MZwTnT2pu%252bNMjOjsHjvN
    lygTRMzqazPStrN%252f1YzA0oWEWLwkHdhVHeG9sG6cMrf
    XNJKHY6fML4o6Nb0SeQm75ET9jAjKelrmqBCNta%252bsKC
    9n8jslz%252fo188N4g3BvAJYuzx8J8r%252f1fPFWkPYg%
    252bT9Su5KoQ9YpNSj%252bmo0h0aEK%252bofj3f6vCP
    into this tinyURL:
    http://tinyurl.com/6
    its essential.

  • How 2 prevent time from changing on leopard and vista?

    if i maintain successive boots into the same OS on my macbook, the time is shown correctly, whereas on booting into another OS changes the time. how to prevent this from happening?
    Neerav

    From what my brother says says about his set-up (he boots into 64 bit Vista periodically), apparently you can't. My understanding is that the two systems do a different version of time at boot, Vista uses a GMT setting in bios, and I think Mac use a local time in EFI. Anyway, the result is several hours difference between the two. I don't use Boot Camp, but I would think if you are on a network with Internet access, you should be able to have the clock reset automatically using System Prefs->Date and Time, and check the box at the top to automatically set the time from the Apple time server.
    Francine
    Francine
    Schwieder

Maybe you are looking for

  • Inserting a Line in front(top ) of a imageview Problems. (x,y) issues

    Hi Guys, so, im making a concept of a Round-robin , i think. Its called Fila Circular in Portuguese. Anyway, the thing is, every time the user press Push, a ball(aka circle) must enter the [index] of the hexagon. But, im having issues making the path

  • SLD Data Supplier Configuration in AS Java System

    Hi All, I am trying to configure my SLD manually in SAP Netweaver CE 7.1 1. Both SLD_DataSupplier and SLD_Client Destinations are created and are successfully. 2. All the security roles and groups are created and mapped in Identity Management (SAP NW

  • Looking for Security Best Practices documentation for Sybase ASE 15.x

    Hello, I'm looking for SAP/Sybase best practice documentation speaking to security configurations for Sybase ASE 15.x. Something similar to this: Sybase ASE 15 Best Practices: Query Processing &amp; Optimization White Paper-Technical: Database Manage

  • Essbase ADD-in and SSL

    Anyone know a way to secure a connection from the ADD-In? I cannot get the Essbase Add-in to use SSL. Even with a load balancer doing offload. Any ideas?

  • How do I secure a web site that has been compromised?

    I have been transferring a shopping cart (zen cart) web site from a different server and hosting company. I am very concerned about security issues because the site has been hacked. Once a web site has been hacked, what kind of things should be doing