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

Similar Messages

  • Linking Access tables, creating a query with using both Access and Oracle

    Hello,
    I am using 3.0.04.34 version Oracle Developer. I am supposed to create a script/procedure to use both Access tables and oracle tables together. There is an option in developer to copy the access tables into oracle. But it doesn't help me. Because when we updated the access tables
    the copied ones are not be updated. How can I created a linked access tables to oracle and create a query with using both access and oracle table together.
    I will appreciate if you guys help me. I look forward to hearing from you guys.
    Thanks,
    Pinar

    Pinar,
    to be able to query MS Access tables in Oracle you need an additional product, the Oracle Database Gateway for ODBC. It allows you to link any foreign database into an Oracle database using a suitable ODBC driver. You can then access the MS Access tables through a database link based on the Database Gateway for ODBC. This will also allow you to join local Oracle and remote MS Access tables from your Oracle database.
    There's a note on My Oracle Support which gives you more details:Document 233876.1 Options for Connecting to Foreign Data Stores and Non-Oracle Databases - For example - DB2, SQL*Server, Sybase, Informix, Teradata, MySQL
    And there's also a dedicated Forum: Heterogeneous Connectivity

  • SELECT * cannot be used in an INSERT INTO query when the source or destination table contains a multivalued field

    Hi,
    I am using Access 2013 and I have the following VBA code, 
    strSQL = "INSERT INTO Master SELECT * from Master WHERE ID = 1"
     DoCmd.RunSQL (strSQL)
    when the SQL statement is run, I got this error.
    SELECT * cannot be used in an INSERT INTO query when the source or destination table contains a multivalued field
    Any suggestion on how to get around this?
    Please advice and your help would be greatly appreciated!

    Rather than modelling the many-to-many relationship type by means of a multi-valued field, do so by the conventional means of modelling the relationship type by a table which resolves it into two one-to-many relationship types.  You give no indication
    of what is being modelled here, so let's assume a generic model where there is a many-to-many relationship type between Masters and Slaves, for which you'd have the following tables:
    Masters
    ....MasterID  (PK)
    ....Master
    Slaves
    ....SlaveID  (PK)
    ....Slave
    and to model the relationship type:
    SlaveMastership
    ....SlaveID  (FK)
    ....MasterID  (FK)
    The primary key of the last is a composite one of the two foreign keys SlaveID and MasterID.
    You appear to be trying to insert duplicates of a subset of rows from the same table.  With the above structure, to do this you would firstly have to insert rows into the referenced table Masters for all columns bar the key, which, presuming this to be
    an autonumber column, would be assigned new values automatically.  To map these new rows to the same rows in Slaves as the original subset you would then need to insert rows into SlaveMastership with the same SlaveID values as those in Slaves referenced
    by those rows in Slavemastership which referenced the keys of the original subset of rows from Masters, and the MasterID values of the rows inserted in the first insert operation.  This would require joins to be made between the original and the new subsets
    of rows in two instances of Masters on other columns which constitute a candidate key of Masters, so that the rows from SlaveMastership can be identified.
    You'll find examples of these sort of insert operations in DecomposerDemo.zip in my public databases folder at:
    https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
    If you have difficulty opening the link copy its text (NB, not the link location) and paste it into your browser's address bar.
    In this little demo file non-normalized data from Excel is decomposed into a set of normalized tables.  Unlike your situation this does not involve duplication of rows into the same table, but the methodology for the insertion of rows into a table which
    models a many-to-many relationship type is broadly the same.
    The fact that you have this requirement to duplicate a subset of rows into the same table, however, does make me wonder about the validity of the underlying logical model.  I think it would help us if you could describe in detail just what in real world
    terms is being modelled by this table, and the purpose of the insert operation which you are attempting.
    Ken Sheridan, Stafford, England

  • Can we use both INSERT and UPDATE at the same time in JDBC Receiver

    Hi All,
    I would like to know is it possible to use both INSERT and UPDATE at the same time in one interface because I have a requirement in which I have to perform both the task.
    user send the file which contains both new and old record and I need to save those in MS SQL database.
    If the record exist then use UPDATE otherwise use INSERT.
    I looked on sdn but didn't find any blog which perform both the things at the same time.
    Interface Requirement
    FILE -
    > PI -
    > JDBC(INSERT & UPDATE)
    I am thinking to use JDBC Lookup but not sure if it good to use for bulk record.
    Can somebody please suggest me something or send me the link of any blog or anything to solve this problem.
    Thanks,

    Hi ,
              If I have understood properly the scenario properly,you are not performing insert and update together. As you posted
    "If the record exist then use UPDATE otherwise use INSERT."
    Thus you are performing either an insert or an update which depends on outcome of a search if the records already exist in database or not. Obviously to search the tables you need " select * from ...  where ...." query. If your query returns some results you proceed with update since this means there are some old records already in database. If your query returns no rows  you proceed with "insert into tablename....." since there are no old records present in database.
      Now perhaps the best method to do the searching, taking a decision to insert or update, and finally insert or update operation is to be done by a stored procedure in MS SQL database.  A stored procedure is a subroutine available to applications accessing a relational database system. Here the application is PI server.   If you need further help on how to write and call stored procedure in MS SQL you can look into these links
    http://www.daniweb.com/web-development/databases/ms-sql/threads/146829
    http://www.sqlteam.com/article/stored-procedures-parameters-inserts-and-updates
    [ This part you can ignore, Since its not sure that you will face this situation
        Still you might face some problems while your scenario runs. Lets consider this scenario, after the stored procedure searches the database it found no rows. Thus you proceed with an insert operation. If your database table is being accessed by multiple applications (or users) other than yours then it is very well possible that after the search operation completed with a null result, an insert/update operation has been performed by some other application with the same primary key. Now when you are trying to insert another row with same primary key you get an error message like "duplicate entry not possible for same primary key value". Thus you need to be careful in this respect. MS SQL has a feature called "exclusive locks ". Look into these links for more details on the subject
    http://msdn.microsoft.com/en-us/library/aa213039(v=sql.80).aspx
    http://www.mssqlcity.com/Articles/Adm/SQL70Locks.htm
    http://www.faqs.org/docs/ppbook/r27479.htm
    http://msdn.microsoft.com/en-US/library/ms187373.aspx
    http://msdn.microsoft.com/en-US/library/ms173763.aspx
    http://msdn.microsoft.com/en-us/library/e7z8d5hf(v=vs.80).aspx
    http://mssqlserver.wordpress.com/2006/11/08/locks-in-sql/
    http://www.mollerus.net/tom/blog/2008/03/using_mssqls_nolock_for_faster_queries.html
        There must be other methods to avoid this problem. But the point is you need to be sure that all access to database for insert/update operations are isolated.
    regards
    Anupam

  • I have an Apple computer, use both Firefox and Safari browsers, use Comcast for my email. Lately, when on Firefox, my email is not functioning properly. Why?

    I have an Apple computer, use both Safari and Firefox browsers. I use both Apple mail and Comcast for my email. Lately, when in Firefox, my email does not work properly. I get a message "your servers license has expired". While I can usually access my emails I cannot delete unwanted emails. This problem does not happen when I use Safari and Apple mail. Is this a Firefox issue or Comcast? Do you know what license expiration refers to?

    Hello,
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • HP Laserjet Pro 400 Printer unable to print docs using both letter and legal paper

    HELP!!  Have been using an HP Laserjet Pro 400 M425dn dual tray printer for 2 years, along with a Dell laptop.  Always had ability to send documents to print using both letter and legal size paper.  Under print set-up on laptop, the option checked was always set to "Choose Paper Source by PDF Paper Size".  Now I've just purchased an HP Envy All-in-One Desktop, which does not offer that option under Print Set-Up.  While it allows for 'Auto Selection' of paper size, you are required to choose either letter or legal size paper.  I've called tech support 3 times, the latest call earlier this am, only to be disconnected.  Yesterday I was told that I should go on hp/support and update drivers.  My husband downloaded drivers, but still no fix.  Unless this issue is resolved asap, I will have no option but to return this Envy Desktop, as I cannot run my business without this option.
    Anyone have a similar problem?  How was it resolved?

    The available options will (probably) be determined by the printer driver in use.
    This , in turn, will be determined partly by which Operating System and version you are using.
    Once a printer model has been out in the field for some time (generally when the next generation (or two?) of devices has been announced to supersede it) that model becomes a 'legacy' device, and 'full-specification' printer drivers may no longer be supplied by the printer manufacturer, but basic (i.e. without too many options) drivers will (probably) instead be supplied with the operating system.

  • Does anyone use both iPhoto and Aperture

    I just got an mac book pro and I am trying to decide what to do with my iPhoto library that is on my old G4 eMac. I'm wondering if the best (and safest) plan would be to transfer that library to the new machine, bring it into iPhoto and then import the entire library into Aperture.
    On second thought I wondered if it would be a good idea to leave everything in iPhoto and just open images in Aperture only when I want the extra editing tools... using Aperture for keeping all the "prime" photos and iPhoto for snap shots and iPhone pictures.
    And... is it even possible to import the library from another machine directly into Aperture?
    Thanks in advance,
    bd

    Pick one and stick with it. They don't actually integrate very much.
    Aperture and iPhoto are entirely different applications that work in very different ways.
    The only communication between the two is as follows:
    Aperture is able to parse the iPhoto Library to allow it to import the contents while stacking the Originals and Modified versions, preserving metadata and so forth.
    Aperture can share its Previews with the iLife apps, including iPhoto.
    That's it.
    So, specifically, what interaction there is between the two is designed to facilitate migration from iPhoto to the more powerful app. After that, iPhoto has exactly the same relationship to the Aperture Library as, say, Pages or iMovie.
    iPhoto has no knowledge of, and knows nothing of how the Aperture Library works. It cannot read the Aperture library.
    So if you decide to try this:
    using Aperture for keeping all the "prime" photos and iPhoto for snap shots and iPhone pictures.
    You'll end up using two apps to manage two different sets of photos, with twice the complications. Aperture is not an "external editor" and can't be used as such.
    Think: Writing your novel in Word and TextEdit at the same time. "I'll write this chapter in Word, this paragraph in TE and then back to word..."
    What of you wanted to sync your Photos back to your Phone? Which library will you use? You can't use both.
    And... is it even possible to import the library from another machine directly into Aperture?
    The routine would be to move the Library to the new machine and them process it into Aperture. Then trash the unwanted iPhoto Library.
    Regards
    TD

  • Using both iPhoto and Aperture workflow help

    I am using both aperture 3 and iPhoto 9 to edit and keep track of images
    I imported images to iPhoto the have Aperture import the iPhoto library this way I have i library..I know if something happens to it I am screwed
    1) I know that Aperture is non destructive, is iPhoto?
    2) will changes ( like GPS location) in aperture be applied to iPhoto images
    3) looking to see if I can make changes made in one program appear in the other
    4) or it it better to import the images in from my external drive (how they were before iPhoto), and have a separate library for each program

    Here's the best advice for using both iPhoto and Aperture:
    Pick one horse and ride it. They both do the same job. If you're shooting Raw or high volumes of Jpeg, then definitely go with Aperture. If you're doing family snaps with a point and shoot stick with iPhoto. Using both adds unnecessary complexity to everything, and with complexity comes the risk of error and data loss.
    1) I know that Aperture is non destructive, is iPhoto?
    Yes. In a wholly different way, mind you, but yes. WHen you edit an image in iPhoto it creates a new file called the Modified Version. You can always revert to the Original photo. If you edit only with iPhoto then you can also avoid generational loss.
    2) will changes ( like GPS location) in aperture be applied to iPhoto images
    No.
    3) looking to see if I can make changes made in one program appear in the other
    You can't.
    4) or it it better to import the images in from my external drive (how they were before iPhoto), and have a separate library for each program
    It makes no sense to use both programs.
    Aperture and iPhoto are entirely different applications that work in very different ways.
    The only communication between the two is as follows:
    Aperture is able to parse the iPhoto Library to allow it to import the contents while stacking the Originals and Modified versions, preserving metadata and so forth.
    Aperture can share its Previews with the iLife apps, including iPhoto.
    That's it.
    So, specifically, what interaction there is between the two is designed to facilitate migration from iPhoto to the more powerful app. After that, iPhoto has exactly the same relationship to the Aperture Library as, say, Pages or iMovie.
    iPhoto has no knowledge of, and knows nothing of how the Aperture Library works. It cannot read the Aperture library.
    What are you hoping to achieve by running both?
    Regards
    TD

  • Can I use both Wifi and a Lan connection at the same time?

    With me back in the dorms I have been limited to a slower connection than what I would like. Now we are able to use both Wifi and a Lan line so I was wondering to somewhat "double" my speed if there was any way to use both connections at the same time.
    Now I know that you can have both plugged in at the same time, I guess what I'm asking is, is there a way that I could set programs to use one or the other? Or some kind of virtual desktop that is set to use the other connection or anything that would allow both be used at the same time.
    Or am I just wishing for something that doesn't have any possible way to work?
    -nathan
    MacBook pro 2.16 C2D 2gb ram   Mac OS X (10.4.8)  

    You can use both at the same time, but not gor Internet access if that's what you're asking.
    Now there is a thing called Link Aggregation, which combines a number of interfaces for speed/redundancy, but it really only works locally, and then only with ALL special equipment in the route, and most likely OSX Server involved.
    Sorry.

  • Since my last firefox update, I have been unable to type an email - the text box does not appear when I press 'reply' , or press 'compose'. The email provider is '123-reg.co.uk. I have been using both firefox and the provider ['webfusion Ltd/webmail123] s

    Hello. Since my last firefox update, I have been unable to type an email - the box within which one would usually type does not appear when I press 'reply' to a received email, or press 'compose'. The email provider is '123-reg.co.uk. I have been using both firefox and the provider ['webfusion Ltd/webmail123] successfully for well over a year. The provider says it is a browser problem. I can still add an attachment to the email header, which successfully can be sent, but the recipient gets my standard email 'signature' with font messages and the attachment. Can anyone help? My email addresses are [email protected] [this is the one with the issue] and [email protected] in English
    == today

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • I'm new to Mac and the program/all called Numbers. I'm trying to use both Average and small in the same formula. What's I'm trying to do is take 20 cells, find the 10 lowest numbers, then get the average and after that multiply it by .96

    I'm new to Mac and the program/all called Numbers. I'm trying to use both Average and small in the same formula. What's I'm trying to do is take 20 cells in a column,  find the 10 lowest numbers, then get the average and after that multiply it by .96  I used to use Excel and the formula worked fine in that. Here is my Formula
    =(average(small(H201:H220,{1,2,3,4,5,6,7,8,9,10})))*.96
    This formula worked in Excel and when I converted my spreadsheet over to Numbers, this formula no longer works.
    The best that I have been able to do so far is use small in 10 different cells, then get the average of the 10 cells and finally multiply that average by .96  So instead of using 1 cell, I'm using 12 cells to get my answer.
    This is a formula that I will be using all the time. The next cell would be =(average(small(H202:H221,{1,2,3,4,5,6,7,8,9,10})))*.96
    Hoping I explain myself well enough and that someone can help me.
    Thanks

    You can still do it in one cell but it will be more unruly than the Excel array formula.
    =average(small(H201:H220,1),small(H201:H220,2),small(H201:H220,3),...,small(H201:H220,10))*0.96
    where you would, of course, replace the "..." with the remaining six SMALL functions.

  • On my wireless printer can i use both usb and wireless at the same time

    i tried to print from coupons,com but it will not  i have used coupons.com before with my other printer and weorked fine i have coupons.com looking into it
    just wondering if anyone else out there have the same problem

    Hi,
    Same physical printer but when connecting to SAME computer using both USB and wireless it becomes two (logical) printers. Probably your default prnter is the wireless one, you have to select the right printer before print .
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Can I use both iPhoto and Aperture on the same library?

    I like some of the features of iPhoto (like faces and places) but prefer to work in Aperture for its rich tool content. Is there any way I can use both iPhoto and Aperture on the same library? Or, import images from Aperture into iPhoto?
    Thanks much!
    John

    I think you may have answered a question I have with the above, but to be sure here is what I would like to do. I currently have iPhoto09 with about 50,000 pictures in it, which seems too much for it to manage. I would like to use Aperture, which I understand is better for managing a large number of photos, but still have iPhoto available to make slide shows, etc. for our AppleTV. Would the process you described above work for that?
    Thank you

  • Use both iPhoto and Aperture with one library-best practice?

    I'd like to use both iPhoto and Aperture, but have both programs use/update just one photo library.  I have the latest versions of both programs, but was wondering if the optimum approach would be to:
    a)point Aperture to the existing iPhoto library and use that as the library for both programs
    or
    b)import the entire iPhoto library into a new Aperture library, delete the iPhoto library, and point iPhoto to use the Aperture library.
    I should point out that up to now I've been using iPhoto exclusively, and have close to 20K photos in the iPhoto library, tagged with Faces, organized into various albums, etc; if that makes a difference...
    Appreciate any advice!
    Thanks,
    Dave

    Thanks Frank!  I'll try it that way.
    Appreciate the help!

  • Am I able to use both Carbonite and Time Machine as back-ups for my iMac?

    HI,
    I have a iMac, and I have recently recently completed the initial back up for Carbonite. I also have a 2TB Seagate external hard drive that I would like to use with Time Machine. I am wondering if I am able to use both Carbonite and Time Machine simultaneously.

    Hi, and welcome to the forums.
    As bdmarsha says, yes, you can run both simultaneously.
    But one caution; there are some reports here that some of the online backup apps keep some fairly large, frequently-changing files on your system. Time Machine will back them up along with everything else, which can take some extra time and space on your TM drive.
    After your initial TM backup, see how large the incremental backups are (by watching the progress bar and info on the +Time Machine Preferences+ window). If those seem too large for the changes you've made since the previous backup, see #A2 in [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html] (or use the link in *User Tips* at the top of this forum), for a couple of apps that will show exactly what was backed-up.
    If you find such things, you can exclude them from TM backups, per #10 in [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html] (or use the link in *User Tips* at the top of this forum).

Maybe you are looking for

  • ALV not getting refreshed when call screen is executed second time

    I have 2 screens 9001 and 9002. In 9001 , I am displaying the fields of a database table in a Table Control. The user has to select some of those fields and click on a button 'Generate ALV'. After clicking , the control navigates to 9002 where I am d

  • Setting up a domain using Oracle DB.

    I creating a domain manually applying portal template using our own WLST script. We successfully applied workshop extension but whenever we try to apply the personalization extension we go the following exception: WARNING] com.bea.plateng.domain.scri

  • Need help with video on older Mac Pro

    I have a 2008 Mac Pro that more than meets all of the specs for FCP X, except the Mac App store won't let me buy and download because the video card in the system doesn't meet specs.  I've found an apple support page that lists the compatible video c

  • File Adapter to read from remote file server query

    Hi all, I want a SOA 11g application to read files on remote server using File Adapter. Is it possible to configure the File Adapter to read from remote location instead of locally. Is it possible. Is yes where can I find the associated remote file c

  • Create dynamic view link

    my problem is I build the first view link by using createViewObjectFromQueryStmt method on my application module instance ,then I build the second view link by using createViewObjectFromQueryStmt method on my application module instance,now when I us