Caching regions on global page zero

Hi all,
I'm trying to understand some use-cases to why caching global page regions wouldn't be viable. The documentation on region caching doesn't help me here, nor does it mention its availability on global pages - not that I saw, anyway.
It was covered [url https://forums.oracle.com/forums/thread.jspa?threadID=2214451]here in the forums 2 years ago, but two years is a long time.
I've been trying to eke out the best performance in an application, and I'm trying to identify regions that could be cached under certain circumstances.
I was a little surprised to find global page regions may not be cached, even bug 14744294 addressed in 4.2.1 for global pages that aren't "0"
Consider a dynamic list in the sidebar acting as a menu, deployed on the global page. Would this be a fair candidate, except perhaps for a "current page" sub-template.
I guess since many/most of these regions would have some sort of APP_PAGE_ID dependency, it's not worth caching?
Anyone have anything of interest to add to this discussion?
Cheers
Scott

Louis-Guillaume,
Good question. We have asked ourselves this and are considering removing the restriction in 4.0. I think it initially had to do with preventing unwanted side effects and anomalies although none of us can recall the details right now. We will have to carefully look at ways to make this something developers can use easily while preventing strange results. First of all, caching of page 0 doesn't make sense. You want to be able to cache regions on page 0. Now, say your page 0 has two regions, P0_CACHED and P0_DYN (one cached, one dynamic). And your page 10 has region P10_CACHED. When page 10 is rendered, you'll get:
P0_CACHED
P0_DYN
P10_CACHED
That looks okay, you get one cached region from page 0, one dynamic region from page 0, and one cached region from page 10. Of course you have controls with which to purge any individual region from the cache so you can cause P0_CACHED to be refreshed whenever you like.
But say page 20 is a cached page. When it renders you'll get:
P0_CACHED <-- not from the page 0 region cache but from the page 20 page cache, regardless of the "stale-ness" of the page 0 cache
P0_DYN <-- not rendered dynamically from page 0 but retrieved as part of the page 20 page cache. But this content may be different from the content for the same page 0 region displayed on page 10 one second ago or one second from now.
P20_DYN <-- from the page cache as is normal for a dynamic region on a cached page
Hardly a thorough treatment, I realize. Just wanted you to know some of the aspects we have to consider. We will also have to read this thread again to come back up to speed: V3 Caching - any more info? .
Scott

Similar Messages

  • How to reference current tab on page zero?

    Hi,
    I have regions placed on page zero. How could I reference the current tab? I have to many pages, so using display condition by using page ID is little uncomfortable. I thought I could make a condition by using SQL expression and referring the label or name of the currently active tab. I think, this is a trivial question, but I can not find how to referre to the current tab's name or label.
    Tamas

    Hi
    I have the exact same problem.
    I cant have multiple navigators on page 0.
    Therefore my navigator on the left hand side should be dynamic, based on the tab I click.
    I've gotten this far (select statement below), but I don't know how to reference the current tab that I've clicked on / the current tab is active (see :P0_TAB_NAME)
    select "MENU_CODE" id,
    "PARENT_MENU_CODE" pid,
    decode(menu_type,'FL','<img src="#APP_IMAGES#folder.png" border="0"
    style="vertical-align:middle">&nbsp<b>' ||menu_description,
    'PG','<img src="#APP_IMAGES#pgm.png" border="0"
    style="vertical-align:middle">&nbsp<b>' ||menu_description,
    'PG','<img src="#APP_IMAGES#tree_group.png" border="0"
    style="vertical-align:middle">&nbsp<b>' ||menu_description) name,
    decode(page_name,null,null,'f?p=&APP_ID.:'||page_name||':&SESSION.') link,
    null a1,
    null a2
    from "CANELAB_NAVIGATOR" a, APEX_APPLICATION_TABS b
    where b.display_sequence = a.menu_group
    and b.tab_name = :P0_TAB_NAME
    order by MENU_CODE

  • Page Zero (0) - Regions Caching / Page Caching not available

    Hi,
    My page zero display information from a calendar table (fiscal year, etc.). This information will be the same all day long (get updated at midnight). It's not possible to enable caching of regions on page zero. It's also impossible to enable caching of the page zero.
    Why?
    Thanks,
    Louis-Guillaume
    [My Blog|http://lgcarrier.blogspot.com]
    [APEX and jQuery demos|http://www.insum.ca/jquery]

    Louis-Guillaume,
    Good question. We have asked ourselves this and are considering removing the restriction in 4.0. I think it initially had to do with preventing unwanted side effects and anomalies although none of us can recall the details right now. We will have to carefully look at ways to make this something developers can use easily while preventing strange results. First of all, caching of page 0 doesn't make sense. You want to be able to cache regions on page 0. Now, say your page 0 has two regions, P0_CACHED and P0_DYN (one cached, one dynamic). And your page 10 has region P10_CACHED. When page 10 is rendered, you'll get:
    P0_CACHED
    P0_DYN
    P10_CACHED
    That looks okay, you get one cached region from page 0, one dynamic region from page 0, and one cached region from page 10. Of course you have controls with which to purge any individual region from the cache so you can cause P0_CACHED to be refreshed whenever you like.
    But say page 20 is a cached page. When it renders you'll get:
    P0_CACHED <-- not from the page 0 region cache but from the page 20 page cache, regardless of the "stale-ness" of the page 0 cache
    P0_DYN <-- not rendered dynamically from page 0 but retrieved as part of the page 20 page cache. But this content may be different from the content for the same page 0 region displayed on page 10 one second ago or one second from now.
    P20_DYN <-- from the page cache as is normal for a dynamic region on a cached page
    Hardly a thorough treatment, I realize. Just wanted you to know some of the aspects we have to consider. We will also have to read this thread again to come back up to speed: V3 Caching - any more info? .
    Scott

  • Page zero - setting cache through database

    Hi!
    Just wondering, if you set caching properties of a region on page zero through the database will this trigger any problems in the application. If not, will the caching work if you manage it this way (because it is not possible to set those properties on page 0 through the application builder).
    Thanks!
    Josip

    Josip wrote:
    Just wondering, if you set caching properties of a region on page zero through the database will this trigger any problems in the application. If not, will the caching work if you manage it this way (because it is not possible to set those properties on page 0 through the application builder).Hi,
    Do you mean that you will modify APEX schema tables data?
    If you do that, then your instance is unsupported state.
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai

  • Hide page zero regions in the builder

    Hi
    We are using APEX version 4.0.2. are have many shared regions (SQL Reports) placed on page zero.
    There are conditions on these (page must be in...), and that works fine when running the application.
    The problem is in the builder, where these page zero report regions appear in the builder, even though the page is not included in the region condition
    (and the region is never shown on the page at runtime).
    It is a bit confusing to see these page zero regions in the builder - as a developer, so have anybody found a way to hide them ?
    Note: we also have SQL regions on page zero, but these do NOT appear in the builder ??
    Brgds
    Martin

    Anybody have any input to this ?
    For me it would make sense that I only see the those page zero region which actually apply to (are used on) my page.
    I see the issue concerning this being determined at runtime, howver perhaps an exception could be made for for "page in" condition ?
    Brgds
    Martin

  • Total Shared Global Region in Large Pages = 0 KB (0%)

    Hi ,
    Am working on Oracle Database 11.2.0.3 ,
    Application 12.1.3.
    i see this message in the alert log file :
    ****************** Large Pages Information *****************
    Total Shared Global Region in Large Pages = 0 KB (0%)
    Large Pages used by this instance: 0 (0 KB)
    Large Pages unused system wide = 0 (0 KB) (alloc incr 32 MB)
    Large Pages configured system wide = 0 (0 KB)
    Large Page size = 2048 KB
    RECOMMENDATION:
    Total Shared Global Region size is 12 GB. For optimal performance,
    prior to the next instance restart increase the number
    of unused Large Pages by atleast 6145 2048 KB Large Pages (12 GB)
    system wide to get 100% of the Shared
    Global Region allocated with Large pages
    What should i do ?
    Thanks

    You definitely are not using hugepagesd. That's what the message you mentioned above is telling you:
    Total Shared Global Region in Large Pages = 0 KB (0%)It very clearly tells you that you have 0KB or 0% is in large pages.
    Note that the terms "large pages" and "hugepages" are synonymous. In Linux, they're called hugepages.
    Also, at the O/S level, you can do:
    cat /proc/meminfoTo see how many hugepages are allocated/free/reserved.
    Hope that helps,
    -Mark

  • Stopping a page from using Page Zero

    I have an Apex application (v 4.2) which uses a page zero, and one level navigation tabs. Is there any way to create a new page which still uses the navigation tabs, but doesn't inherit page zero?
    Or can I create a 'different' page zero and have some pages inherit that instead?

    Antilles wrote:
    I have an Apex application (v 4.2) which uses a page zero, and one level navigation tabs. Is there any way to create a new page which still uses the navigation tabs, but doesn't inherit page zero?
    What exactly are you trying to do? What do you mean by "one level navigation tabs"? Standard tabs are rendered by the page template, not by a region.
    To suppress a page zero ("global page" in new terminology) region, use a Current Language is not contained within Expression 1 condition on the global page region, and create a region with a different definition in that display position on the new page.
    Or can I create a 'different' page zero and have some pages inherit that instead?
    No, APEX currently only permits one global page for each user interface type defined for the application.

  • ORA-06502 on "Help Text" region when changing pages on a tabular form

    Hello everybody,
    We are developing an application on Apex 4.1.0.00.32. This application have some pages with tabular forms and these pages uses a page zero as template. In this page zero, we have added two sidebar regions: a list region to navigate on the application and a help text to describe how to use our application.
    The problem occurs when the tabular split the records into pages (since it has more records that it can show on a single page). When the user clicks to change to another page, Apex raises an ORA-06502: PL/SQL: numeric or value error as described below:
    Erro ao renderizar a região "Ajuda". ORA-06502: PL/SQL: erro: erro de conversão de caractere em número numérico ou de valor
    Informações Técnicas (visível somente para desenvolvedores)
    is_internal_error: true
    apex_error_code: APEX.REGION.UNHANDLED_ERROR
    ora_sqlcode: -6502
    ora_sqlerrm: ORA-06502: PL/SQL: erro: erro de conversão de caractere em número numérico ou de valor
    component.type: APEX_APPLICATION_PAGE_REGIONS
    component.id: 2
    component.name: Ajuda
    error_backtrace:
    ORA-06512: em "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 3654
    ORA-06512: em "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 4204
    Obs: Our database is in Brazilian Portuguese, so I guess it will be hard for some people to understand the first two lines! :)
    We have tried to change the pagination style of the tabular form and change the region model of the help text but the problem still happens.
    Does anyone an ideia about what this may be?
    Thanks in advance!

    I am getting the exact same message, to the line number, also in APEX 4.1.0.0.32.
    Occurs when changing pages in a classic report, Standard region template, select list pagination, when selecting a different pagination set.
    In English:
    Error during rendering of region "Matched Participants Help & Hints".
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    Technical Info (only visible for developers)
    is_internal_error: true
    apex_error_code: APEX.REGION.UNHANDLED_ERROR
    ora_sqlcode: -6502
    ora_sqlerrm: ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    component.type: APEX_APPLICATION_PAGE_REGIONS
    component.id: 2
    component.name: <strong>Matched Participants</strong> Help & Hints
    error_backtrace:
    ORA-06512: at "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 3654
    ORA-06512: at "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 4204
    There are no conditions on the region, and no date string within the Help text. Some HTML <strong> tags, that's it.
    The Help region renders fine the first time.
    The Debug info does not help any:
    3.798360.00062Computation point: After Box Body4
    0
    3.798990.00081Processes - point: AFTER_BOX_BODY4
    0
    3.799790.00068Region: <strong>Matched Participants</strong> Help & Hints4
    0
    3.800470.00213Region rendered dynamically because request was not null4
    0
    3.802590.00096Add error onto error stack4
    0
    3.803550.00084...Error data:4
    0
    3.804400.00084......message: Error during rendering of region "<strong>Matched Participants</strong> Help & Hints".4
    0
    3.805240.00084......additional_info: ORA-06502: PL/SQL: numeric or value error: character to number conversion error4
    0
    3.806080.00081......display_location: ON_ERROR_PAGE4
    0
    3.806890.00081......is_internal_error: true4
    0
    3.807700.00084......apex_error_code: APEX.REGION.UNHANDLED_ERROR4
    0
    3.808540.00082......ora_sqlcode: -65024
    0
    3.809350.00234......ora_sqlerrm: ORA-06502: PL/SQL: numeric or value error: character to number conversion error4
    0
    3.811700.00082......error_backtrace: ORA-06512: at "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 3654 ORA-06512: at "APEX_040100.WWV_FLOW_DISP_PAGE_PLUGS", line 4204 4
    0
    3.812510.00081......component.type: APEX_APPLICATION_PAGE_REGIONS4
    0
    3.813310.00110......component.id: 24
    0
    3.814420.00099......component.name: <strong>Matched Participants</strong> Help & Hints4
    0
    3.815400.00076...Show Error on Error Page4
    0
    3.816160.00344......Performing rollback4
    0
    3.819610.00225Processes - point: AFTER_ERROR_HEADER4
    0
    3.821850.00268Processes - point: BEFORE_ERROR_FOOTER4
    0
    3.82453-End Page Rendering
    Any thoughts on where to poke around for this one?
    Thanks - Karen

  • Custom pagination for APEX 4.2 interactive report using Page Zero

    Hi,
    I want to implement an «Custom pagination for APEX 4.2 interactive report» using a «page zero».
    I recently migrate from Apex 3.1 to Apex 4.2 and my «Custom pagination for APEX 3.1 interactive report» using a «page zero»  is not working any more.
    So now I try to adapt an excellent example of Jari Laine for 4.0 but using a page zero.
    I put the code JavaScript to Page zero but I must create an dynamic action to fire only for an interactive report region.
    It’s a good idea?
    Thank you

    Thought I would try once more with my DatePicker question.
    On the Apex.Oracle.Com website I have created a 1 page application that has an Interactive Report.
    [url http://apex.oracle.com/pls/apex/f?p=15655:1]
    user = 'test'
    password = 'test'
    I have 2 questions :
    (1) In IE7, press 'Actions', 'Filter'. On the Column dropdown list, select 'Order Timestamp'.
    Notice the prompt icon to the right of the 'expression'. This should change to the Datepicker, but in IE7 it does not. Try the samething in Firefox or Chrome and the Datepicker will appear.
    Is this a BUG, or does Apex 4.02 not support IE7 ?
    (2) In Firefox or Chrome, where you can now see the Datepicker, you will notice that it is the new style picker, not the old style ( called 'classic' ). I want to change it so that it shows the 'classic' datepicker not the new, but cannot see how to do it, if indeed you actually can.
    I would really appreciate it if someone could take a look and let me know if I am going mad, or if we need to get all our users onto IE8. We have now gone live with Apex 4.02 and need to resolve these issues.
    Thanks in advance.
    Edited by: DooRon on 10-Mar-2011 05:13

  • BTF in a region of a page of UI Shell not refreshing

    Hi All,
    Jdev Version : 11.1.2.0.0
    We are using a Bounded Task Flow (BTF) in a ADF Region of a page, which is made using the dynamic template UI Shell with replace-in-place method(Only one tab refreshes all time with new content).
    We are refreshing/invoking the new content using:
    TabContext tabContext = TabContext.getCurrentInstance();
    try{
    // tabContext.setMainContent("/WEB-INF/flows/task-calendar.xml#task-calendar");
    tabContext.setMainContent("/WEB-INF/flows/task-list.xml#task-list", paramMap);
    AdfFacesContext.getCurrentInstance().addPartialTarget(tabContext.getContentArea());
    catch (TabContext.TabContentAreaDirtyException toe)
    // TODO: warn user TabContext api needed for this use case.
    In the BTF, We are on the first screen if we click on one command link , we are navigating to another region .If i click the side navigation bar that is in page template.I am able to naviagate that.But again i followed the same process and navigated to
    that region.Second time , If i am clicking the command link on the Page template, it is not allowing me to navigate in first page of default activity of the task flow.I can say that region is refreshing.
    We are using AdfFacesContext.getCurrentInstance().addPartialTarget(tabContext.getContentArea()); to refresh.
    Please let me know how can i resolve the issue

    duplicate: Global link in BTF with region

  • Page Zero and Pop-up Windows

    Hello:
    I am trying to create a pop-up window that doesn't have some/all of the page zero regions. I don't want to create another page just for the pop-up window, I would like to use the same page but with(out) some privileges. I just don't want the user to be able to navigate to other pages (page zero lets you do that) from the pop-up window. Is there a way some/all page zero regions can be not shown when a pop-up window is displayed?
    Thanks,
    -Bino
    Edited by: bino on Jun 2, 2010 7:11 AM

    Hi Bino -- I'm not sure how you are bringing up your pop-up window, but you can set conditions on the regions in page 0 just like any other page so, for example, you could have a certain region not appear if the user is not logged on or if an item has a certain value, etc. If you are going to use an item value, when you bring up the pop-up window, you could set the value of that item right in the URL as one option.
    Rgds/Mark M.

  • Insert a report region in a page template

    Hi,
    i have a report region in the sidebar of a page which displays some values from a table.
    i would like to show this report in every page of my application. how can i insert this report in my page template?
    i know this report of mine should be displayed in #REGION POSITION 2# of my page template but... i don't know how to integrate it.
    thank you very much,
    matteo

    Hi matteo,
    You can put your report in page Zero.
    Every elements you put in page zero will display in all your application pages.
    However if you don't want the report to display in some page, like the login page, you must put a condition in the conditional display settings.
    Paulo Vale
    http://apex-notes.blogspot.com

  • Display text on Page Zero

    Hi,
    I've got a Page Zero with HTML text region. This text is displayed in the middle of the page, however I want the text to be displayed on the right of the page (in the same region) instead of in the middle. How would I do this? Thanks.

    Hi,
    I don't think you understood what I want.
    My display point parameter at the moment is "Page Template Region Position 5". I dont want to change this parameter. I only want to change the position of the text in this display point from the center/left to the right. I figure that I have to add something to the Region HTML table cell attributes, but i don't know what.

  • How to display help text for Region in a page having more than one region

    Hi all,
    I want to display help text for each region in my page. I have 5 regions in my page.
    I have a big help text for each of my region so can any easy way is there to put the help text for each region more than 10 lines .I tried lot by searching forums but not able to implement. any document is there then please let me know.
    Thanks in advance,
    Amit

    i mean either if we click the region title name it should display some help text of near about 10 lines in a popup window.
    Or on moseover whenever we will put the cursor into the region title then it should displat the help text message of line 10.
    Hope you will get my qustion well.
    Thanks,
    Amit

  • Need to remove the header and footer regions on one page

    Hi,
    I have a requirement to remove the header and footer regions on one page only. The regions I'm referring to contain the following:
    Header:
    Company logo, Home link, Logout link, Preferences link
    Footer:
    Copyright info, Privacy Statement, Home link, Logout link, Preferences link
    These are the standard Oracle header and footer regions/page items, so I am not specifying a particular page name, although it would be the create time cards page we want to modify.
    Also, we only want to remove these regions/items from ONE page, not an entire responsibility.
    Any help is greatly appreciated.
    Thanks!
    Suzanne

    Hi,
    In order to hide,
    Home link, Logout link, Preferences link
    Use this code in the processrequest of the controller on the page on which you want tohide these
    OAPageLayoutBean page = pageContext.getPageLayoutBean();
    page.prepareForRendering(pageContext);
    page.setGlobalButtons((oracle.cabo.ui.UINode)null);
    And for hiding the Copyright info, Privacy Statement:
    Click on Personalise page link
    then Click on Choose Context
    Choose "OAFooter" as Scope
    and click "Apply"
    and then Personalise the Copyright and Privay Statememnt icon and set rendered as False.
    Thanks,
    Gaurav
    Edited by: Gauravv on Aug 25, 2009 8:36 PM

Maybe you are looking for

  • Writing in between a text File

    Hi all, During a task, I am facing an interesting problem, this came first time since my 2 years development in Java. In always use BufferedReader in = new BufferedReader(new FileReader("/home/oracle/init1.txt")); to read from file and, PrintWriter o

  • I just connect one monse to my MacBook Air and now my keybord is not working

    I just connect one monse to my MacBook Air and now my keybord is not working What to do?

  • File i/o

    how would i load this data and test to see if works i dont have an interface yet public void saveGamesArray(String fileName) { try { FileWriter fw = new FileWriter(fileName); BufferedWriter bw = new BufferedWriter(fw); PrintWriter out = new PrintWrit

  • XL "Stock Turnover" - sample report

    Hi support I need a report stock level report that gives me details: by selected date range of stock in & out, to determine what is required in stock to fill orders expected..working from the evaluated result on report. Question: - I have looked at X

  • AVCHD Files not showing in FCP

    Hi, I've an iMac and FCP, everything is completely up to date but the Log and Transfer won't show my AVCHD Files, on an SDHC Card, recorded on a Panasonic HMC151. My Mac Book, still on FCP 6.0.5 and running OS 10.4 sees them fine and will play them w