Partition elimination inconsistent behavior

Hello.
When we query a partitioned table and partition-aligned indexes are employed, seeks are performed in two steps: If the partition column is used as a predicate, the index is used to eliminate partitions assigned to ranges the predicate values don't fall in.
Then it proceeds to perform serial scans/seeks in any remaining partitions.
Now suppose I have a table partitioned on a varchar(10) column. Ranges are defined for values '230' and '281'. In SQL Server 2012 SP1,
partition elimination won't happen unless i explicitly convert the predicate value to varchar(10).
NOTE: I'd like to refrain from posting the scripts to generate the entire data structure because they are sensitive.
Basically the original objects are like the ones below:
CREATE TABLE TEST
(PARTITION_COLUMN VARCHAR(10),
SOME_ID INT)
GO
CREATE CLUSTERED INDEX IDX_TEST (PARTITION_COLUMN, SOME_ID) ON PARTITION_SCHEME(PARTITION_COLUMN)
GO
CREATE VIEW VW_TEST AS
SELECT SOME_ID, PARTITION_COLUMN
FROM TEST
WHERE SOME_ID = 9
GO
Partition scheme has 3 filegroups to cover the ranges '230' and '281' in the partition function. The partition function expects a varchar parameter.
CREATE PARTITION FUNCTION [RANGE_PROJETOS](varchar(10)) AS RANGE LEFT FOR VALUES (N'230', N'281')
GO
When I use a literal varchar value:
SELECT COUNT(*) FROM VW_TEST
WHERE PARTITION_COLUMN = '234'
Seek Keys[1] tell us there is no partition elimination, since its filter implies the selection of all partitions. If I later run this query, the "Actual partition count" value will be 3.
If I either use a variable or explicitly convert the literal value to varchar(10), partition elimination will be done:
However, the plan behavior is still inconsistent. The "RangePartitionNew" function is used when the literal value isn't known at compile time, which is acceptable for the query to the left, in the image above, because a variable is being used,
but not for the query to the right. What makes the latter all the more strange is the fact that it does an implicit conversion to varchar(10) even though it is already explicitly converted to the very same data type!!

This problem occurs even when querying the table directly instead of the view.
SELECT * FROM TB_RESULTADO
WHERE ID_PROJETO_EXTERNO = '234'
SELECT * FROM TB_RESULTADO
WHERE ID_PROJETO_EXTERNO = CONVERT(VARCHAR(10), '234')
Can you verify?  I see the expected actual partition count of 1 with the repro below under SQL 2012 SP2.  To add on to Paul' blog, simply following best practices as to parameterize queries with matching data types will avoid the issue with
auto parmeterization.
CREATE PARTITION FUNCTION [PARTITION_FUNCTION](varchar(10))
AS RANGE LEFT FOR VALUES (N'230', N'281');
CREATE PARTITION SCHEME PARTITION_SCHEME
AS PARTITION PARTITION_FUNCTION ALL TO ([PRIMARY])
CREATE TABLE TEST(
PARTITION_COLUMN VARCHAR(10),
SOME_ID INT);
GO
CREATE CLUSTERED INDEX IDX_TEST ON TEST(PARTITION_COLUMN, SOME_ID) ON PARTITION_SCHEME(PARTITION_COLUMN)
GO
CREATE VIEW VW_TEST AS
SELECT SOME_ID, PARTITION_COLUMN
FROM dbo.TEST
WHERE SOME_ID = 9
GO
SET STATISTICS IO ON
SELECT COUNT(*) FROM VW_TEST
WHERE PARTITION_COLUMN = CAST('234' AS varchar(10));
GO
Dan Guzman, SQL Server MVP, http://www.dbdelta.com
Dan,
You have to leave the literal value predicate as it is (without any conversions) to reproduce the aforementioned situation.

Similar Messages

  • Partition elimination using views

    Hi all,
    i am having problem with a view which is accessing all the partitions in my table.
    i have a table which has 30 columns and is partition by one column called cid. it is a list partition.
    when i do a query on the table, the explain plan show partition (single)
    ex. select * from table1 where dt=trunc(sysdate) and cid=1 and txt='123A'so the above query works fine and access one partition (value 1(
    now, i created a view base on the table. it looks like this:
    create or replace view view1 as
      column names
    select * from
          (select * from table1 where type='tek') a,
            (select * from table1 where type='pak') b
    where a.userid = b.userid(+)when i issue the statement below, the explain plan show partition (all)
    select * from view1 where dt=trunc(sysdate) and cid=1 and txt='123A'i cannnot seem to find a way for partition elimination using the view. can someone help how to resolve this problem?
    thanks

    consider the following data
    user id       cid       type    name
    ======================
    ABC           1        tek      robert
    ABC           1        pak      will
    TYY          1        tek       smith
    TYY          1        tek       john
    WWW       2        pak      mil
    EEE           2        tek      Josso for example, query a is taking rows with tek value, query b is displaying rows with pak value and both query are join on user id.
    abc row in quey a will join with abc row in query b and this will become one row instead of two.
    so when run query the view such as select * from view1 where cid=1 then i want the view to access partition cid=1 and get the ABC and TYY rows only.
    but it looks it is accessing all partitions which is not what i am looking for.
    let me know if this helps

  • Inconsistent behavior of user-role assignment

    Hi, all.
      i'm using EP 6.0 SP9 patch1.
      i logged on as an Administrator user.
      In the menu User Administration --> Roles --> Roles, i got the inconsistent behavior of user-role assignment.
      1. Normal behavior(from user --> edit)
       i searched and selected one user and click the "Edit" link
       --> i can assign all the roles that i want.
      2. Abnormal behavior(from role --> edit)
       i searched and selected one role first and click the "Edit" link
       --> some roles CANNOT be editted(even though i clicked the "Edit" link, it doesn't go to the edit screen). The roles that i couldn't edit are the SAP original roles like Administrator, content_admin_role, user_admin_role...
      Could someone please give me any advice on this problem?
      Thanks.

    Hi Sejoon,
    please open an OSS message.
    Best regards
    Detlev

  • Inconsistent Behavior from Bluetooth Audio

    I've noticed very inconsistent behavior from my bluetooth headset and my iPhone 4. Work fine for voice calls, but doesn't work for a GPS Navigator or Voip. Works for Facetime most of the time, but sometimes won't. Anyone else having this kind of inconsistencies?

    I was told by support that it is normal for bluetooth headsets to only work for voice calls on the iPhone 4. That really doesn't make sense to me, so I can't use a GPS Navigator with voice turn by turn directions with my bluetooth headset? My ancient 5 year old Motorola Razr would do that.

  • Partition Elimination

    We are having very large database for one particular region of 140+ tables.From which 30+ tables having millions of rows.We are generating reports based on that database.for performance gain,we have added so many Indexes.
    Now,we are having more than 30 regions data.So,we have partitioned large tables on region & subpartition on current & history data.
    Now,we are trying to do partition elimination.but,it access indexes against partition elimination.All indexes are global index.Index are not partitioned.
    Can anybody give inputs on how partition elimination can be achieved?

    Thank you very much for reply.
    Oracle Version : 9.0.2
    partition by Range-List
    We are using Bind Variables.
    20 percentage rows of tables selected.
    30 percentage of specific partition selected.
    query & it's explain plan is below:
    select coll.* from temp_collstock coll,
    acbs_t_calendar cal
    where cal.as_of_date_stamp between valid_from_stamp and valid_to_stamp
    and cal.portfolio_id in ('DM')
    and cal.as_of_date_desc = 'Most recent day'
    and coll.portfolio_id = cal.portfolio_id
    and coll.most_recent >= cal.most_recent
    temp_collstock is partitioned on portfolio_id & subpartitioned on most_recent(having 0 & 1 value.can be treated as flag)
    for cal.portfolio_id ,cal.as_of_date_desc values passed at run time.
    through calendar table only we can give reference of portfolio_id as well as most_recent.
    valid_from_stamp and valid_to_stamp is period for which we have valid data.we pass stamp from calendar table for passed date & portfolio.
    index defined on temp_collstock for (valid_from_stamp,valid_to_stamp)
    stats gather for all(global,partition,subpartitions,index).
    | Id | Operation | Name | Rows | Bytes | Cost | Pstart| Pstop| |
    | 0 | SELECT STATEMENT | | 293 | 45415 | 178 | | |
    |* 1 | TABLE ACCESS BY GLOBAL INDEX ROWID| TEMP_COLLSTOCK | 147 | 19404 | 88 | ROWID | ROW L |
    | 2 | NESTED LOOPS | | 293 | 45415 | 178 | | |
    | 3 | TABLE ACCESS BY INDEX ROWID | ACBS_T_CALENDAR | 2 | 46 | 2 | | |
    |* 4 | INDEX RANGE SCAN | ACBS_T_CALENDAR_01 | 2 | | 1 | | |
    |* 5 | INDEX RANGE SCAN | TEMP_LOAN_P1 | 2805 | | 61 | | |
    Predicate Information (identified by operation id):
    1 - filter("COLL"."PORTFOLIO_ID"="CAL"."PORTFOLIO_ID" AND "COLL"."MOST_RECENT">="CAL"."MOST_RECENT"
    AND "COLL"."PORTFOLIO_ID"='DM')
    4 - access("CAL"."PORTFOLIO_ID"='DM' AND "CAL"."AS_OF_DATE_DESC"='Most recent day')
    5 - access("CAL"."AS_OF_DATE_STAMP"<="COLL"."VALID_TO_STAMP" AND
    "CAL"."AS_OF_DATE_STAMP">="COLL"."VALID_FROM_STAMP")
    filter("CAL"."AS_OF_DATE_STAMP">="COLL"."VALID_FROM_STAMP" AND
    "CAL"."AS_OF_DATE_STAMP"<="COLL"."VALID_TO_STAMP")
    let us have your inputs.

  • Inconsistent behavior with BC4J

    With oracle 9iAS we are using a DataSource and Connection Pooling at the app module level is disabled via :
    jbo.doConnectionPooling = true and jbo.maxpoolsize = 0
    Also the jbo.am.minavailablesize and jbo.ampool.maxavailablesize are each at 20.
    The inconsistent behavior is when i try accessing a certain page over and over again..
    two different users ...two different sessions...both accessing the same page repeatedly...
    After quite a few successful hits for each of the two users...
    why would one of the users get the following message on the same page ...
    while the other user is returned the page that was requested...
    and a third user who logs in is also returned the same page
    JBO-30003: The application pool (com.xyz.abc.abc.abc.abc.abc_AppModule.abc_AppModuleLocal) failed to checkout an application module due to the following exception:oracle.jbo.NoDefException: JBO-25002: Definition com.abc.abc.abc.abc.abc.abc.dal.abcView of type View Definition not found     at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:311)     at oracle.jbo.mom.DefinitionManager.findDefinitionObject(DefinitionManager.java:252)     at oracle.jbo.server.MetaObjectManager.findMetaObject(MetaObjectManager.java:661)     at oracle.jbo.server.ViewDefImpl.findDefObject(ViewDefImpl.java:283)

    Can you run the server with -Djbo.debugoutput=console property set on the vm command line and send us the detail exception, if any, thrown on the server console.

  • Cross  Dissolves - Inconsistent Behavior

    Hello excellent forum members,
    I have a question about the inconsistent behavior of cross dissolves -- specifically removing cross dissolves. I find that occasionally (maybe 1 in 5 times) when I remove a dissolve between two photos, the appropriate time is not added back to the shot. For instance, if I remove a 20 frame dissolve, 10 frames should be added back to each of the two shots. Usually, that IS the case (i.e. the frames are added back to the photo as expected), but, occasionally it's not. Usually the correct time is added back to one photo, but not to the other. I think this is just an odd bug -- I'm wondering if others have experienced it, too. (It's also not a big deal to work around -- you just have to keep your eye on the shots in question when you're removing a dissolve and make sure you note whether or not the right time has been restored to the shot.)
    Thank you for your input...
    Diana

    Actually, I have never had that much trouble with deleting a transition, But I, too, have used the delete instead of the revert option in the pst.
    However, I have used the retore option for other reasons and it works perfectly...unless you are reverting a clip that has effects and titles added before hand.
    That may cause you to do a bit more work and delete more than just the transition.
    Sue

  • Pop-ups inconsistant behavior on PCs

    I recently made a website in Dreamweaver MX 2004 for an
    artist and the pop-ups that I created via the behaviors panel are
    not working properly some of the time on PC’s. All of my
    pages are XHTML and passed HTML validation at validator.w3.org.
    Please look at this page as an example:
    http://www.karenlfield.com/maui.html
    Obviously when you click on any of the six medium-sized
    images, the pop-up should open in a new browser over the upper left
    corner of the main page window, on mousedown as I specified. The
    problem is that on some of the PCs, some of the time, the pop-up
    html pages of the large images open up behind the main window and
    the viewers never see the pop-up pages and keep on clicking to no
    avail. I tested my site on many different machines at different
    locations. On one occasion, I tested on six PCs in the same office.
    The pop-ups worked perfectly on five of the machines, but the
    performance on the sixth machine was inconsistent at best. This is
    in Internet Explorer both 6 and 7. I don’t see any pattern.
    I’ve double-clicked, single-clicked, you name it. Does anyone
    have a solution to this dilemma?? Thanks, D North
    maui
    paintings

    In the pop-up window if you use
    <body onLoad="self.focus();">
    that should bring the focus to the pop-up window when it
    loads and should
    keep it above the other window(s) till the user clicks on any
    other
    window.Also in your pop-up links, say for example
    <a href="javascript:;"
    onmousedown="MM_openBrWindow('NeonPalms.html','NeonPalms','width=620,height=497')"><img
    src="images/Maui_cm.jpg" alt="Neon Palms" width="218"
    height="160"
    border="0" /></a>
    right now, if I disable javascript nothing will happen when I
    click on an
    image.
    a better method maybe to use something like this
    <a href="NeonPalms.html" target="_blank"
    onClick="MM_openBrWindow('NeonPalms.html','NeonPalms','width=620,height=497');
    return false;"><img src="images/Maui_cm.jpg" alt="Neon
    Palms" width="218"
    height="160" border="0" /></a>
    This way if javascript is disabled, a new window will open.
    It won't have
    the specified size, but it'll atleast work.
    I like the website and your other work.
    "dnorth" <[email protected]> wrote in
    message
    news:[email protected]...
    >I recently made a website in Dreamweaver MX 2004 for an
    artist and the
    >pop-ups
    > that I created via the behaviors panel are not working
    properly some of
    > the
    > time on PC?s. All of my pages are XHTML and passed HTML
    validation at
    > validator.w3.org. Please look at this page as an
    example:
    >
    http://www.karenlfield.com/maui.html
    > Obviously when you click on any of the six medium-sized
    images, the pop-up
    > should open in a new browser over the upper left corner
    of the main page
    > window, on mousedown as I specified. The problem is that
    on some of the
    > PCs,
    > some of the time, the pop-up html pages of the large
    images open up behind
    > the
    > main window and the viewers never see the pop-up pages
    and keep on
    > clicking to
    > no avail. I tested my site on many different machines at
    different
    > locations.
    > On one occasion, I tested on six PCs in the same office.
    The pop-ups
    > worked
    > perfectly on five of the machines, but the performance
    on the sixth
    > machine was
    > inconsistent at best. This is in Internet Explorer both
    6 and 7. I don?t
    > see
    > any pattern. I?ve double-clicked, single-clicked, you
    name it. Does anyone
    > have
    > a solution to this dilemma?? Thanks, D North
    >
    >
    http://www.karenlfield.com/maui.html
    >

  • Inconsistent behavior importing OIM 9.1.0.2 BP20 to OIA  11gR1 - 11.1.1.5

    We are building our OIM/OIA integration - preferred method. We are Weblogic 10.3.5.0 -- OIA 11gR1 - 11.1.1.5 -- OIM 9.1.0.2 BP20 - Based on experience and documentation, I think perhaps the 11g to 11g integration is the truly preferred method.
    During testing we found that while the OIM resource had > 600 entitlements associated, only two came over to OIA upon policy import. No errors were thrown. Is there a limitation to the number of attributes that can be imported to OIA?
    We will be defining roles in OIA and importing them to OIM, and are concerned about how OIA will respond to attributes defined in the OIA app prior to OIM forms having knowledge of them - can we define attributes if they have not yet been defined on a form in OIM?
    What behavior should we be expecting?

    Use Upgrade Assistant tool
    go through below link
    Re: OIM 9102 to 11g upgrade
    --nayan                                                                                                                                                                                                                                                                                   

  • Inconsistent behavior of "where" filter command in remote powershell session

    I've got a simple powershell script I've written to do a gpo backup (backup-gpo) to a remote file share, and then I launch a remote powershell session with "invoke-command" where I zip up the results of the gpo backup, then delete the gpo
    backups once the files are safely zipped.
    What I'm seeing, and I've never seen before, is very inconsistent results in the file filtering statements.  I use the following line twice in my code to find the files written by the GPO backup:
     Get-ChildItem -Force | ? {($_.lastwritetime.date -eq (Get-Date).date) -and ($_.name -notlike "*.zip")}
    The first time it finds the files to zip, the second time it finds the files to delete.  It's a copy/paste, so it's the exact same code.
    The weirdness that happens is some nights, it works fine, and both filters match what they should.  The GPO backup results are found, zipped, and then deleted.  Other nights, the first filter will match all old *.zip files (the exact
    opposite of the filter), and zip them up - then the "delete" filter, which is the exact same code, will match correctly and delete the GPO backup results that should have been zipped but weren't.
    Last night the first filter matched correctly, and then the second filter matched the date portion of the filter, ignored the *.zip portion, and deleted everything in the target folder from that day. 
    Anyone seen anything like this?

    Hi Nbhms,
    Any updates about this issue?
    If you need further help, please feel free to reply this post directly
    so we will be notified to follow it up.
    If you have any feedback on our support, please click here.
    Best Regards,
    Anna
    TechNet Community Support

  • Sender SOAP Adapter, inconsistent behavior

    Hi,
    We are using XI 3.0 SP17. We have noticed some inconsitent behavior with the sender SOAP adapter:
    When sending a valid SOAP message to the adapter, it will reply with:
    <SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'><SOAP:Header/><SOAP:Body/></SOAP:Envelope>
    To me this seems errornous, becuase it is missing "<?xml version='1.0'?>" in the beginning, and thus is not valid XML. This leads to errors on the Client that is sending messages to the Sender SOAP adapter.
    When sending an errornous SOAP message from the client to the XI Sender SOAP adapter, the error message does include the "<?xml version='1.0'?>" + the corresponding error message, so the behavior seems inconsitent and errournous.
    Can someone tell me how the get the Sender SOAP Adapter to include "<?xml version='1.0'?>" in the reply for valid SOAP messages?
    Thanks for any help on this subject!
    -Hans
    PS: Here is an example of an error message from the Sender SOAP adapter, that does include the xml header:
    <?xml version="1.0"?>
    <!-- see the documentation -->
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
         <SOAP:Body>
              <SOAP:Fault>
                   <faultcode>SOAP:Server</faultcode>
                   <faultstring>Server Error</faultstring>
                   <detail>
                        <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
                             <context>XIAdapter</context>
                             <code>MalformedMessageException</code>
                             <text><![CDATA[Unexpected content in SOAP:Body; nested exception caused by: com.sap.aii.messaging.util.XMLScanException: Unexpected content in SOAP:Body\tat com.sap.aii.messaging.mo.Message.reparseRootDocument(Message.java:1014)\tat com.sap.aii.messaging.net.MIMEInputSource.readSOAPPart(MIMEInputSource.java:619)\tat com.sap.aii.messaging.net.MIMEInputSource.decodePart(MIMEInputSource.java:611)\tat com.sap.aii.messaging.net.MIMEInputSource.readBody(MIMEInputSource.java:379)\tat com.sap.aii.messaging.net.MIMEServletInputSource.parse(MIMEServletInputSource.java:58)\tat com.sap.aii.af.mp.soap.web.MessageServlet.doPost(MessageServlet.java:378)\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:760)\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:853)\tat com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)\tat com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)\tat com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)\tat com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)\tat com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)\tat com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)\tat com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)\tat com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)\tat com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)\tat com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)\tat com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)\tat java.security.AccessController.doPrivileged(AccessController.java:180)\tat com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)\tat com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)          ]]></text>
                        </s:SystemError>
                   </detail>
              </SOAP:Fault>
         </SOAP:Body>
    </SOAP:Envelope>

    Hi,
    "Do not use SOAP Envelope" is not really an option for us.
    From help.sap.com:
    If the indicator is set, the adapter expects a message without a SOAP envelope.
    If you have set the indicator, you must also enter nosoap=true in the URL.
    The adapter then puts the whole message in the XI payloads
    So this also requires heavy changes to the client side. It would almost make more sense to use the plain HTTP adapter in that case..
    -Hans

  • Sort order inconsistent behavior

    There seems to be inconsistent behaviour when defining a default sort order sequence.
    Everything works as expected when the display sequence and the order in which the columns are defined in the query are the same but as soon as the display sequence is changed the default sort order doesn't work for the second column in the order sequence.
    I have put up an example at [apex.com|http://apex.oracle.com/pls/otn/f?p=36885:1]
    In report EMP the display sequence and query sequence are the same and the default sort on "Job" and "Hiredate" is correct working. Even when the user sorts on "Manager".
    The sort order sequence then becomes "Manager", "Job" and "Hiredate". As also descripted in the following Sorting on multiple columns
    And exactly the behaviour we are looking for.
    Report EMP2 is a copy of EMP with the only difference the order in which the columns are displayed
    Now the default sort order doesn't work as expected. The report is first ordered on "Job" but then on "Employee" instate of "Hiredate" as is defined. Interestingly "Employee" is the second column in the query.
    It seems that instate of the query_column_id the column_display_sequence is used in the order by. At least for the second column in the defined sort order sequence.
    This may also explain the behaviour mentioned with [derived columns and sort sequence|http://forums.oracle.com/forums/thread.jspa?messageID=1006429&#1006429]
    The display sequence in report EMP2 is where the wizard came up with.
    Nicolette

    Stew
    At the report attributes you can define the sort sequence of a column. When you do that initialy the report is sorted as you defined it. So in my example that is first by "Job"and within "Job" by "Hiredate". When the user sort explicit on an other column this column is put before the columns you have defined.
    So when the user clicks on "Manager" the sort order becomes "Manager", "Job", "Hiredate". When the user then sort on "Employee" the sort order becomes "Employee", "Job" an "Hiredate".
    This works when the order in which the columns appear in your query are the same as the order in which they are displayed.
    BUT as soon as the display order changes the sort sequence doesn't work anymore. Even worse is that also the initial sort sequence doesn't work for the second column any more. (I haven't tested for three or more columns)
    In the example I have put on apex.com in the second report the sort sequence of the report attributes is the same as in the first report. But the initial sort order that is actually done is on "Job" and "Employee" instate of "Job" and "Hiredate". Where "Hiredate" is the second column in the display sequence. But "Employee" is the second column in the query.
    So to really make use of the sort sequence you have to keep your display sequence equal to the order in witch they appear in the query. This isn't really practical.
    Nicolette

  • BEST_EFFORT_QUERY Timeout - inconsistent behavior

    I'm seeing inconsistent results with the Best Effort Query/Timeout combination using the Jena Adaptor. Sometimes it appears that the timeout is working exactly as expected, after X amount of time (5 seconds in our case), the query returns with a subset of the specified data. Other times, it seems that the query ignores the fact that a timeout has been specified and it churns much longer than I would expect. Is there some reason for this that I'm missing?
    Jena v 2.6.2
    11g r2.0.2
    I provided these numbers for a different thread (Binding string values in SPARQL but they apply here as well. The query starts like so:
    PREFIX ORACLE_SEM_FS_NS:<http://oracle.com/semtech#timeout=5,BEST_EFFORT_QUERY=t,DEGREE=8>
    DEBUG[2011-08-05 09:05:49,498] - [service:debugQuery:202] - ( 0 processed in 0:00:32.578)
    DEBUG[2011-08-05 09:08:30,872] - [service:debugQuery:202] - ( 532 processed in 0:00:04.265)
    DEBUG[2011-08-05 09:09:23,262] - [service:debugQuery:202] - ( 532 processed in 0:00:01.250)
    Second Test: Search for "Juvenile"
    DEBUG[2011-08-05 09:16:22,588] - [service:debugQuery:202] - ( 0 processed in 0:00:06.078)
    DEBUG[2011-08-05 09:18:01,072] - [service:debugQuery:202] - ( 1 processed in 0:00:52.172)
    DEBUG[2011-08-05 09:19:21,602] - [service:debugQuery:202] - ( 1001 processed in 0:00:57.999)
    DEBUG[2011-08-05 09:20:03,477] - [service:debugQuery:202] - ( 1001 processed in 0:00:07.031)
    Any suggestions you can offer would be very helpful.
    Regards,
    J.P.
    Edited by: 877356 on Aug 5, 2011 8:00 AM

    Hi,
    Could you please send me (alan dot wu at oracle dot com) a reproducible test case?
    The time out logic in Jena Adapter depends on JDBC's timeout and also row fetching from a result set.
    Thanks,
    Zhe Wu

  • Workflow -Inconsistent behavior of wf_engine.setitemattrdate

    I have customized HR self service workflow for termination. I am using wf_engine.setitemattrdate to set the value for all the custom attributes, sometimes the attributes do not come through in the notification, though they are derived; they work as expected other times; behavior is not consistent.
    One more observation: When I terminate effective of the system date, the employee is terminated in the system, notification is sent, but details are not listed in the notification.
    For past date and future date termination the details come through.
    Has anybody encountered this kind of scenario, Is there a way to overcome these issues.

    I can't remember when it happened but one of the versions along the way implemented functionality that required that the user enter a password to start the J2EE engine.
    I asked OSS about it and they told me it was for security reasons. Well, obviously but it's my LOCAL machine.
    Anyway, no more automatic starting.  : (

  • Dv6-3050us touchpad / touchbutton issues? Inconsistent behavior touching vs. pressing the buttons.

    Okay, so here's the deal:
    The DV6-3050US has an integrated touch device. That is to say, both the typical touch pad AND the left/right buttons are touch-sensitive. However, they do not exhibit the expected behavior...
    Specifically, the right "touch button" seems slightly weird.
    Both button are touch sensitive. And both are also "clickable," IE, if you press down on them, they behave approximately as expected for a usual "button."
    Thw problem arises in a couple areas.
    Firstly, since the buttons are touch sensitive, any motinon on them is considered to be "touchpad motion," and the cursor moves, regardless of context. So, the cursor moves when dragging your finger across the button, but it also moves when you're just trying to click the physical "push button." This is an issue needing resolution because it often means that befoer you push hard enough to register a click, your finger has moved, thus the cursor has moved, thus it is sometimes no longer over the object you were tryign to click on. It is also sometimes over a completely different object you never meant to click on.
    This brings us to the second issue. The first issue might not be as much of an issue if the right "touch button" also functioned as a "touch right-click," but it seems not to (rather, it ALSO functinos as a left-click). That is to say, if you tap/touch the left mouse button (without using the "physical click" by pressing even harder) it functions as a left click. This is probably a function of the fact that the ENTIRE pad (including the buttons) works like a left mouse click (as most touch pads can be set up to do, and generally are by default). The problem is, I'd LIKE IT if the right touch button acted as a "right click" when touched / tapped, rather than as the more generic pad-wide "touch/tap left click." That way, I could just tap the pad in the section that's supposed to be the "right mouse button" and it would act like a right mouse button / contextual click.
    Is there a way to set this thing up so that things function AS EXPECTED? Is it an HP issue? Is it a Windows 7 issue? Is it a driver issue?
    So, yeah, I'd like it to be that things work consistently.
    Currently:
    Entire "touch surface" functions as mouse cursor.
    Touch "left mouse button" functions as left mouse click when touching/tapping and pressing
    Touch "right mouse button" functions as left mouse click when touching/tapping, but as right mouse button when pressing.
    Ideally:
    Entire touch surface functions as mouse cursor.
    Touch "left mouse button" functions as left mouse click when touching/tapping and pressing
    Touch "right mouse button" functions as right mouse click when touching/tapping and pressing.
    If it's not possible to get touching/tapping in the "left/right mouse button" sections of the touch surface to be consistent with the pressing/clicking action, then is it possible to disable ONLY that portion of the touch surface assigned to the "left/right mous button" sections of the pad, but leave the upper "touch pad" sectino sensitive to touch? That way, when pressing the "physical" left right mouse buttons, the cursor won't move during the process of pressing the buttons?
    Hope this all is clear enough and makes sense?
    Any suggestions?
    I know the driver allows for defining areas of vertical / horizontal scrolling areas of the pad. But does it allow for changing or disabling the sections assigned to the "buttons"?
    Best,
    ~Michael

    Do you have the latest touchpad software installed?
    http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?lc=en&dlc=en&cc=us&lang=en&product=4230544&
    There are some settings, they can be found in control panel (icon view) > Mouse, there should be a tab for the touchpad.

Maybe you are looking for

  • XP no longer shows up as a startup disk

    After upgrading to leopard today, my XP partition no longer shows up as a startup disk. I had/have my windows partition on it's own drive that was NOT created with bootcamp. I pulled my osx disk from the my mac pro and installed windows on the disk i

  • Having trouble connecting computer to TV with sound

    I have a 2010 macbook pro and a samsung LN40B550 LCD HDTV - having trouble connecting computer to TV with sound - I'm not sure which connectors I need and have purchased a few that aren't working (HDMI: DVI cable & Mini - DP to DVI adaptor).  Any hel

  • Producer-c​onsumer design for temperatur​e and pressure acquisitio​n

    I am working on my first LabVIEW program in version 8.6.  I eventually want to be able to take both temperature and pressure measurements (6 RTDs and 2 pressure sensors), write them to files, compare the temperatures, and then turn 9 heaters (2 zones

  • Opening a Somat .sie file in DIAdem takes forever

    Hi All, I'm new to DIAdem but know LabVIEW well. I am trying to open a Somat .sie file. I have the Somat .sie data plugin installed and DIAdem sees the file fine but it takes forever to load. The file opens fine using SoMat InField (and very quickly)

  • Can I keep my music library if I upgrade to a new iPod?

    I have an older 20 gig, first generation iPod that I absolutely love. However, I am contemplating an upgrade to one of the new 30 gig iPod's that have video. Will I able to put my iTune's library, and all of my contents into a new iPod if I upgrade?