Caching Query Issues?

I have a test(on the server) and a development(localhost) sites so is the oracle database schemas.  Both Oracle database schemas reside on the same server. I have the same datasource name for both schemas in the CF Administrators (local and server). For some reason, it seems to me that the data being pulled only from the test environment database eventhough I run the code on the development(localhost).  I cleared the cache on the CF administrator.   Any advise would be great.  Thanks.

Soumen Mondal,
If you are facing this problem from the same client PC and in the same session, it's very strange.. but if there are two sessions running on the same PC this kind of issue may come..
Something about caching:
To decide whether to cache a query or not, consider the number of times you intend to run the query in a minute. For data changing in seconds, and queried in minutes, I would recommend not to cache query at all.
I may give a typical example for query caching in a query on material master cached for 24 hours, where we know that after creating material master, we are not creating a PO on the same day.
BR,
SB

Similar Messages

  • Physical query issued by Obiee when cache is on is different and slow

    When the same report runs in OBIEE 10g and cache is OFF it takes less then 1min to get results. If cache is turned ON physical query issued by Obiee is totally different and it takes 2h to get results. Has anyone experienced this with having cache on that some queries are performing poorly.
    Thanks,
    Tatjana

    We are using BI Apps Order Management and Fulfillment Analytics and all tables are cached anyway. Dimensions used are not that huge up to 40K rows. What should I check when it comes to DB query? As I said is different than one generated when cache is disabled although both have the almost the explain plan.

  • Cannot query using both conforming and cached query result

    TopLink doesn't allow me to both use conforming and cached query result at the same time.
    Conforming is certainly not a superset of the [cached query result] features.
    Can you confirm that it's a limitation of TopLink?
    Any know workaround to end-up with the same features as using both conforming and cached query result?
    Conforming is about seeing modifications you do in the same transaction. As a bonus, if you query for one object and specify at least the id as criteria because TopLink will have to check in memory anyway it can avoid going to the database.
    But if I do a query like "give me employees hired before now and after 30 days ago" it's about more than one objects and about finding existance so cached query result is needed to get acceptable performance in a complex application trying to avoid the same SQL generated over and over again.

    Thats where the trace just ends? It doesnt look like there's any LIKE or filtering going on (with respect to the Oracle pieces anyway), apparently MSAccess simply requested the whole table.
    What do you mean by 'hang' exactly? Are you sure it's just not taking a long time to complete? How long have you waited? How fast does it complete on the other environment?
    ODBC tracing isnt likely to help much for that. SQLNet tracing would be better to see what is going on at a lower level. Specifically, what is going on at the network level? Is the client waiting for a packet to be returned from the database?
    Is the database having a hard time processing the query, perhaps due to index/tuning issues?
    Assuming that is indeed the query that is "hung", how much data does that return?
    Are you able to reproduce the same behavior with that query and vbscript for example?
    Greg

  • Dataset query issues twice if the dataset is connected to matrix and used in multilookup function

    hello everybody.
    could not find any information if this is an intended behavior:
    dataset query issues twice if the dataset is connected to matrix and used in multilookup function
    parameters in both queries are the same
    ssrs: 2008 r2, sharepoint 2010 integrated
    sharepoint 2010: september 2014 cu
    thanks in advance
    Sergey Vdovin

    Hello, Wendy.
    I prepared a very empty sample report for you to demonstrate the problem - with this report, i hope, there is no place to discuss the shrinking of time data retrieval.
    There is one dataset, one parameter and one lookup function. The query is executed twice.
    <?xml version="1.0" encoding="utf-8"?>
    <Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns:cl="http://schemas.microsoft.com/sqlserver/reporting/2010/01/componentdefinition" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition">
    <AutoRefresh>0</AutoRefresh>
    <DataSources>
    <DataSource Name="DataSource1">
    <DataSourceReference>http://t005/ProjectBICenter/DocLib/IntegrationDBVdovin.rsds</DataSourceReference>
    <rd:SecurityType>None</rd:SecurityType>
    <rd:DataSourceID>7e554344-d6c2-48a5-a7f4-1d24608cb4b5</rd:DataSourceID>
    </DataSource>
    </DataSources>
    <DataSets>
    <DataSet Name="DataSet1">
    <Query>
    <DataSourceName>DataSource1</DataSourceName>
    <CommandText>select 1 as temp, '$' as tempname</CommandText>
    <rd:UseGenericDesigner>true</rd:UseGenericDesigner>
    </Query>
    <Fields>
    <Field Name="temp">
    <DataField>temp</DataField>
    <rd:TypeName>System.Int32</rd:TypeName>
    </Field>
    <Field Name="tempname">
    <DataField>tempname</DataField>
    <rd:TypeName>System.String</rd:TypeName>
    </Field>
    </Fields>
    </DataSet>
    </DataSets>
    <ReportSections>
    <ReportSection>
    <Body>
    <ReportItems>
    <Textbox Name="ReportTitle">
    <CanGrow>true</CanGrow>
    <KeepTogether>true</KeepTogether>
    <Paragraphs>
    <Paragraph>
    <TextRuns>
    <TextRun>
    <Value>=Lookup(1,Fields!temp.Value,Fields!tempname.Value,"DataSet1")</Value>
    <Style>
    <FontFamily>Verdana</FontFamily>
    <FontSize>20pt</FontSize>
    </Style>
    </TextRun>
    </TextRuns>
    <Style />
    </Paragraph>
    </Paragraphs>
    <rd:WatermarkTextbox>Title</rd:WatermarkTextbox>
    <rd:DefaultName>ReportTitle</rd:DefaultName>
    <Top>0mm</Top>
    <Height>10.16mm</Height>
    <Width>139.7mm</Width>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    <PaddingLeft>2pt</PaddingLeft>
    <PaddingRight>2pt</PaddingRight>
    <PaddingTop>2pt</PaddingTop>
    <PaddingBottom>2pt</PaddingBottom>
    </Style>
    </Textbox>
    </ReportItems>
    <Height>57.15mm</Height>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    </Style>
    </Body>
    <Width>152.4mm</Width>
    <Page>
    <PageFooter>
    <Height>11.43mm</Height>
    <PrintOnFirstPage>true</PrintOnFirstPage>
    <PrintOnLastPage>true</PrintOnLastPage>
    <Style>
    <Border>
    <Style>None</Style>
    </Border>
    </Style>
    </PageFooter>
    <PageHeight>29.7cm</PageHeight>
    <PageWidth>21cm</PageWidth>
    <LeftMargin>2cm</LeftMargin>
    <RightMargin>2cm</RightMargin>
    <TopMargin>2cm</TopMargin>
    <BottomMargin>2cm</BottomMargin>
    <ColumnSpacing>0.13cm</ColumnSpacing>
    <Style />
    </Page>
    </ReportSection>
    </ReportSections>
    <ReportParameters>
    <ReportParameter Name="ReportParameter1">
    <DataType>String</DataType>
    <DefaultValue>
    <Values>
    <Value>1</Value>
    </Values>
    </DefaultValue>
    <Prompt>ReportParameter1</Prompt>
    <ValidValues>
    <DataSetReference>
    <DataSetName>DataSet1</DataSetName>
    <ValueField>temp</ValueField>
    <LabelField>tempname</LabelField>
    </DataSetReference>
    </ValidValues>
    </ReportParameter>
    </ReportParameters>
    <rd:ReportUnitType>Mm</rd:ReportUnitType>
    <rd:ReportServerUrl>http://t005/ProjectBICenter</rd:ReportServerUrl>
    <rd:ReportID>cd1262ef-eca7-4739-a2ce-d3ca832d5cd6</rd:ReportID>
    </Report>
    Sergey Vdovin

  • Web Query issues

    Hi All,
    I have created a web query and assigned it to a role. I have moved the role, web templete and the query from dev to QA was able run the query fine without issues.
    The problem I am having is when I make changes to the query and transport it to QA...when I run the query from the role menu it still shows the old query instead of the changed query.
    Can someone please explain what are the steps I need to take when I make changes to exsisting web query in dev and move to QA and be able to see the changes. What are all the objects I need to collect. Also would like to know if there are any settings on the role menu or web templete that need to be changed and also any buffers that I need to cleared??
    Any help is appriciated and will give max points.
    Thanks

    BWdesi,
    please avoid reposts - it could be that due to network issues the post got posted twice... close one of them as answered and then proceed with the other one...
    Web Query issues
    Arun

  • Query issue

    I had query issue on planning layout
    Sold    mat   price   qty   amount
    100      3        5        5          25    layout 1
    100      4       10       5          50    layout2
    when I should removed  material  cal has to come  like this
    100             15        10          75
    but I getting value like
    100        15       10       150
    can u plz tell me how to slove this
    regards
    raju

    Dear Raju,
    In the query, for the Calculated Key Figure (Amount)
       Select properties, enhanced and change to:
                          "BEFORE AGGREGATION"
    It seems to be doing after aggregation, which is  default.
    it is aggregating:
        price = 5+10 = 15
        qty   = 5+5 = 10
        Amount = 15 * 10 = 150
    Good luck, BB

  • Cache update issue??

    Hi Everyone,
    I am implementing simple File to JDBC scenario. The sender file adpater is working fine, but the receiver JDBC adapter seems to be causing a bit of problems.
    I am using MS Access as the data base. Database XI.mdb is in D:/JDBC/XI.mdb
    The parameters in JDBC adapter that i have filled are:
    Connection String: jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=//132.186.85.184/D:/JDBC/XI.mdb;
    JDBC Adapter: sun.jdbc.odbc.JdbcOdbcDriver
    Persistence: local
    Conflict Resolution: redo
    Interprtation of empty string values: "
    These are the only fields filled up in the receiver JDBC adapter.
    Now the issue is although I am working in Namespace: http://Ashish_File_To_JDBC
    The output in the JDBC receiver communication channel contains the namespace which i was earlier using and not the one it should be:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:JDBC_Vendor xmlns:ns0="<b>http://Ashish_File_to_idoc</b>">
    - <Data_DB>
    - <XI action="INSERT">
      <TABLE>XI</TABLE>
      </XI>
    - <Access>
      <Vendor_Number>320123</Vendor_Number>
      <Last_Name>Rodrize</Last_Name>
      <Search_term>enjoy</Search_term>
      <Currency>USD</Currency>
      <Street>Anothony St</Street>
      </Access>
      </Data_DB>
      </ns0:JDBC_Vendor>
    Is this some kind of cache refersh issue. I have tried refreshing everything.
    Regards,
    Ashish

    Ya i have checked eacha nd every object in IR and ID properly, there is no mistake there for sure.
    ALso cause i am expecting a output:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:JDBC_Vendor xmlns:ns0="<b>http://Ashish_File_to_JDBC</b>">
    - <Data_DB>
    - <XI action="INSERT">
    <TABLE><b>HELLO</b></TABLE>
    - <Access>
    <Vendor_Number>320123</Vendor_Number>
    <Last_Name>Rodrize</Last_Name>
    <Search_term>enjoy</Search_term>
    <Currency>USD</Currency>
    <Street>Anothony St</Street>
    </Access>
    <b></XI></b>
    </Data_DB>
    </ns0:JDBC_Vendor>
    I am getting:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:JDBC_Vendor xmlns:ns0="http://Ashish_File_to_idoc">
    - <Data_DB>
    - <XI action="INSERT">
    <TABLE>XI</TABLE>
    </XI>
    - <Access>
    <Vendor_Number>320123</Vendor_Number>
    <Last_Name>Rodrize</Last_Name>
    <Search_term>enjoy</Search_term>
    <Currency>USD</Currency>
    <Street>Anothony St</Street>
    </Access>
    </Data_DB>
    </ns0:JDBC_Vendor>
    This was my previous output, but since i have made changes to it, the changes are not being reflected in the communication channel output.
    Regards,
    Ashish

  • Cache memory issue!

    Hi All,
    we have a report that has around 4000 pages of data, and when i try to print manually to the printer it has going around 3200 pages and can't go further. I am guessing it is a cache memory issue, any suggestions on how to fix this.
    thankz,
    kalyan.

    Hi,
    you have quite an out-of-date version there. Can you consider upgrading to the latest service packs (5) and fix pack (5.5)? You can download the SPs and FixPacks here ( [http://service.sap.com/patches] ) If the problem persists after the upgrade I recommend issuing a support ticket here [http://service.sap.com/support]
    Regards,
    Stratos

  • Cache Monitoring issue

    Hello all.
    I'va the following error when I check the Cache Monitoring in RWB
    for "Integration Server (ABAP Cache)" :
    Communication error
    It's the case for all objects : example for Integration processes
    What is the origin of this issue ?
    If I check "Integration Server (Java Cache)" objects , it's ok !!
    Thnaks in adavance

    hi,
    you always need to start with this doc
    if you have cache related issues:
    https://websmp109.sap-ag.de/~sapdownload/011000358700003163902004E/HowTo_handle_XI_30_Caches.pdf
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • cache-query-results question

    I have another post for general descriptor tag information but I do have a specific question. In a project I am looking at I see:
    <cache-usage> check cache by primary key </cache-usage>
    <cache-query-results>false</cache-query-results>
    <maintain-cache>true</maintain-cache>
    I'm not sure how to interpret this. Does this mean that a cache is in place or not? cache-query-rests is set to false which implies no caching, yet the other parameters imply a cache is in place. What overrides here?
    Thanks

    The XML maps directly to the API so the JavaDocs and related documentation are the best tools:
    cache-usage: query.setCacheUsage(int)
    This option indicates how the object cache should be used when processing the query. This is how in-memory query is configured as well as support for cache-hits on ReadObjectQuery.
    cache-query-result: query.setShouldCacheQueryResults(boolean)
    This option allows you to indicate that the results returned from the query execution should be held. When the query is executed again these results will be returned without going to the database or searching the object cache. This is just caching the results locally within the query.
    maintain-cache: query.maintainCache() or query.dontMaintainCache()
    This setting determines if the results returned from the query should be cached in the shared object cache. It is on by default and turning this off is very rare. Occasionally done to compare the cache version with the database verision when handling an optimistic locking failure.
    Doug

  • Slow/choppy playback - cache buffering issue

    On playback, PP6 randomly slows down and plays back choppy on visually complex shots.  It takes repeated stops and starts to clear it out.  I have troubleshot the life out of this, read every relevant thread, and tried everything imaginable to fix it.  Windows 7 pro is fully optimized.  There are no software conflicts (installed a drive with only windows and CS6)  I’ve got plenty of horsepower - 3930K in an asusp9x79pro, gtx 670 w/4mb, 32mb ram, OC to 4.5.  Eric Bowen at ADK has personally tuned the system and done a manual overclock. Memtest confirms the ram is fine. There are no hardware issues. Dropped frame indicator stays green, no dropped frames.  Switching from hardware to software mercury playback does nothing.  Rendering has no effect, nor do any playback settings. It happens with AVCHD and h.264 mp4’s as well, on short clips, not just long ones. It does not happen outside of ppro. Since I have eliminated hardware and software issues, all this leaves is Premiere.
    As Eric explains it, it is a cache buffering issue, related to how the nvidia card and ppro interact, and he sees it frequently enough.  I can't do his explanation justice, but he has offered to jump in and provide more detail if need be.
    Whatever it is, it’s ridiculous.   It is totally unacceptable to play down a sequence and have it intermittently slow down  on a system with this much power that has been properly set up by a pro.  It’s a shame, because it’s the only thing from keeping ppro/cs6 from being the best platform I’ve edited on in my 12 years as an editor.
    I’ve filed a bug report, but gotten no response.  If others are seeing it, and can file a bug report, maybe it will be publicly acknowledged and resolved.
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

    Hi,
    I  think I have similair problem. First of all my current specs is:
    Asus Sabertooth z77 mainboard with intel i7 2700K processor
    32 gb (8*4) ram
    120 gb ssd sata3 drive for OS and CS6
    500 gb sata3 7200rpm hd for cache files
    1 tb sata3 7200rpm hd for source video and audio
    and finally Nvidia GeForce GTX 660 Ti with 2gb of memory
    Blackmagic shuttle io card etc
    This system were combined specially for my endless highend compositing needs and it works like a charm with all applications other than Premiere Pro.
    Yesterday I barley finished editing a short (approx 2 minutes) 1080p project that shot with Canon 5D MKII. Without using mercury playback engine application
    works fine but once I activate it all playback became really slow and laggy and sometime it freeze if I move playhead quickly.
    I only use one video and one audio track in timeline so we can say this editing scenario is a fundamental for production grade NLE application.
    My graphic processor has a lot of cuda power but Adobe doesn't support it natively so I have to edit  the famous text file.
    On CS5 and CS5.5 I done lots of 1080p project with my old gtx 480 card and I never encountered any similair problem.
    I hope my favorite and trusted software company Adobe will find the problem and will fix it soon...
    Thanks
    M.Maya

  • Is it possible to stop APEX using a cached query?

    I was hoping that the issue where report regions sometimes show the error: "ORA-06502: PL/SQL: numeric or value error: NULL index table key value" would be fixed in 3.1.1 however it seems not to have been (We have had it several times now). The workaround seems to be to change the query slightly such as selecting NULL as an additional column and then hiding that column.
    This obviously only works AFTER the issue has occured, ie, after we have received a complaint from someone!
    Is it possible to stop APEX using the cached version of some queries altogether? The ones we are calling are quite simple and so will not give that much overhead.
    Thanks.

    I've actually found several threads on this from the past:
    ORA-06502: PL/SQL: numeric or value error: NULL index table key value
    http://kr.forums.oracle.com/forums/thread.jspa?threadID=644172&tstart=120 (This thread states the problem has been fixed however it would appear either it hasn't or there is a similar bug elsewhere.)

  • Caching Query in Portal - Variable set to System Current Date

    Hi,
    I am facing issue on caching for query in portal in Production. I have query called ABC in production with variable Master valid on for user to chooce the date. This variable is hardcoded value in General Precalculation in variable assigment session. Eg. If i run OLAP Cache today then it will hardcoded to 18.9.2008. I cannot change the production query to set to System current date unless I use new technical name for any changes eg XYZ.
    Can i use different technical name for query in portal eg. XYZ in order to capture master valid default to today date ? I will do Broadcaster - OLA Cache for XYZ and does it also cache for ABC (query in portal)
    The purpose of caching is to happen to query ABC in portal. Please advise.
    PY

    name_in gets the value of the item. So you should use copy.
    copy('',:system.current_block||'.'||:system.current_item)

  • Cache query in Portal

    Hi,
    I am facing issue on caching for query in portal in Production. I have query called ABC in production with variable Master valid on for user to chooce the date. This varible is hardcoded value in General Precalculation in variable assigment session. Eg. If i run OLAP Cache today then it will hardcoded to 18.9.2008. I cannot change the production query to set to System current date unless I use new technical name for any changes eg XYZ.
    Can i use different technical name for query in portal eg. XYZ in order to capture master valid default to today date ? I will do Broadcaster - OLA Cache for xyz and does it also cache for ABC (query in portal)
    The purpose of caching is to happen to query in portal. Please advise.
    PY

    Hi,
    Then looks like a problem with their user roles. Try to do the Root Cause. Meantime copy thier roles to new ones or change them slightly so they work.
    Cheers,
    Kedar

  • SQL query issue

    I am attempting to connect to a Progress database using JDBC and am having a few issues with my SQL statement. The code concerned looks like this:
    // Get a statement from the connection
    Statement stmt = conn.createStatement() ;
    // Execute the query
    ResultSet rs = stmt.executeQuery( "SELECT * FROM pub.cust" ) ;
    // Loop through the result set
    while( rs.next() )
    System.out.println( rs.getString( "cust-code" ) ) ;
    That works just fine. Prints out each of the cust-code values. My issue comes when I try to refine the query to be:
    ResultSet rs = stmt.executeQuery( "SELECT * FROM pub.cust WHERE cust.Cust-code='100001-0'" ) ;
    or even
    ResultSet rs = stmt.executeQuery( "SELECT Cust-code FROM pub.cust" ) ;
    Both of these give me an error saying Column not found/specified.
    if I wrap Cust-code in single quotes, the script prints Cust-code on each line, not the value for it. If I escape Cust-code like Cust\-code, I get an Illegal escape character. Any ideas?

    I have never used Progress, but maybe you have to fully qualify the field names like this:
    ResultSet rs = stmt.executeQuery( "SELECT * FROM pub.cust WHERE pub.cust.Cust-code='100001-0'" ) ;
    ResultSet rs = stmt.executeQuery( "SELECT pub.cust.Cust-code FROM pub.cust" ) ;Just a thought.

Maybe you are looking for

  • Can't open file in Imovie 09

    Hello there. I was working with a friend on a video project. She has a newer macbook then I and when she emailed me the file to finish editing I could not open it. When I tried to import it into Imovie it said that 'This file is not comaptible with I

  • Possible to manually change apn in iOS 4

    Here in Italy we have a "nice" thing called Mobile Virtual Carrier... So I have a SIM by a Virtual Carrier (Fastweb) that actually uses the network provided by a Real One (H3G). I would like to use this SIM on my iPhone 3G, that I updated to iOS 4 an

  • How to reference an inner class with @link?

    Hi, Let's assume we have a class Test with an inner class namned InnerTest. If I want to put a @link to a method in InnerTest in another java-file, what do I write? To reference a method in Test, I write: {@link com.company.Test#method} My first thou

  • JDeveloper 10.1.3.5 - SQLworksheet

    Hi, I am using JDeveloper 10.1.3.5. When I try to execute sql query from SQLworksheet, it gets unresponsive sometimes. Hence I would need to exit JDev and start it again. Is there a way I can just abort the command execution? Thanks, Arun Edited by:

  • Reader 9.2 works not on Restricted users?

    Hello. In a user/pc if i logon with administrator account the Reader 9.2 works without any problem. If i logon with a user account the reader comes with the error "Internal error". This situation was the same with reader 8.1 , 9.0 and now with 9.2. O