Query loading non-candidate subclasses

Given a class hierarchy as follows:
A
B extends A
C extends A
When I execute a query looking only for B.class Kodo attempts to load C,
even though its not a possible result from the query. Its quite irritating,
is there any way to control this? Is it a bug or a side effect of something
else?
java.lang.ClassNotFoundException: B
INFO - [junit]      at
kodo.jdbc.runtime.JDBCStoreManager.loadSubclasses(JDBCStoreManager.java:1211
INFO - [junit]      at
kodo.jdbc.runtime.JDBCStoreManager.addClassConditions(JDBCStoreManager.java:
958)
INFO - [junit]      at
kodo.jdbc.runtime.JDBCStoreManager.selectMappings(JDBCStoreManager.java:921)
INFO - [junit]      at
kodo.jdbc.runtime.JDBCStoreManager.access$300(JDBCStoreManager.java:33)
INFO - [junit]      at
kodo.jdbc.runtime.JDBCStoreManager$SelectImpl.selectInternal(JDBCStoreManage
r.java:1332)
INFO - [junit]      at
kodo.jdbc.sql.AbstractSelect.select(AbstractSelect.java:308)
INFO - [junit]      at
kodo.jdbc.sql.AbstractSelect.select(AbstractSelect.java:299)
INFO - [junit]      at
kodo.jdbc.query.JDBCExpressionFactory.select(JDBCExpressionFactory.java:137)
INFO - [junit]      at
kodo.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:111)
INFO - [junit]      at
kodo.query.JDOQLQuery$DataStoreQueryExecutor.executeQuery(JDOQLQuery.java:45
4)
INFO - [junit]      at
kodo.query.AbstractQuery.executeWithMap(AbstractQuery.java:725)
Thanks,
Dylan

Are you using Kodo 3.1? It sounds like you'd need to define A to use a
virtual mapping (part of Kodo 3.1's horizontal mapping support), and
then B and C both to use base mappings, B's subclasses to use flat
mappings, and C's subclasses to use vertical.
-Patrick
D. Wilson wrote:
(The inheritance tree is a little more complicated than I indicated)
The side of the tree where B lives are all flat mapped to one table
The side of the tree where C lives is vertically mapped to its own table
therefore B and C are not in the same table.
Dylan
"Patrick Linskey" <[email protected]> wrote in message
news:[email protected]...
What does your mapping info look like? In particular, what are you doing
for a subclass strategy?
-Patrick
D. Wilson wrote:
Given a class hierarchy as follows:
A
B extends A
C extends A
When I execute a query looking only for B.class Kodo attempts to load
C,
even though its not a possible result from the query. Its quiteirritating,
is there any way to control this? Is it a bug or a side effect ofsomething
else?
java.lang.ClassNotFoundException: B
INFO - [junit] at
kodo.jdbc.runtime.JDBCStoreManager.loadSubclasses(JDBCStoreManager.java:1211
INFO - [junit] at
kodo.jdbc.runtime.JDBCStoreManager.addClassConditions(JDBCStoreManager.java:
958)
INFO - [junit] at
kodo.jdbc.runtime.JDBCStoreManager.selectMappings(JDBCStoreManager.java:921)
INFO - [junit] at
kodo.jdbc.runtime.JDBCStoreManager.access$300(JDBCStoreManager.java:33)
INFO - [junit] at
kodo.jdbc.runtime.JDBCStoreManager$SelectImpl.selectInternal(JDBCStoreManage
r.java:1332)
INFO - [junit] at
kodo.jdbc.sql.AbstractSelect.select(AbstractSelect.java:308)
INFO - [junit] at
kodo.jdbc.sql.AbstractSelect.select(AbstractSelect.java:299)
INFO - [junit] at
kodo.jdbc.query.JDBCExpressionFactory.select(JDBCExpressionFactory.java:137)
INFO - [junit] at
kodo.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:111)
INFO - [junit] at
kodo.query.JDOQLQuery$DataStoreQueryExecutor.executeQuery(JDOQLQuery.java:45
4)
INFO - [junit] at
kodo.query.AbstractQuery.executeWithMap(AbstractQuery.java:725)
Thanks,
Dylan

Similar Messages

  • Loading Non-English Characters using VBA and BAPI

    Hi Experts,
    I am trying to load Non-English characters (Chinese, Korean, Japanese, etc.) into a SAP Table using BAPI and VBA. I have set the connection language and codepage values but when I run the tool, the non-English characters display as ????? or #####. Do you know how to fix this issue?
    Thanks!

    If your language is a unicode tehn you need to change the options  like IN SAP you need to change it to unicode  in the initial screen Customize local layout(ALT F12) options 118  --> Encoding ....

  • Query for non turn customer report in service module(Add-on)

    Hi,
    I want create  query for non turn customer report, that mean the customer who are not come for  last 6 months to our service workshop in service module(Add-on). this is a scenario. 
      SELECT T1.U_CardDate, T1.U_JCardNo,T1.U_TypeSrv,T2.U_VehReg,T2.U_PurchDt, T2.U_VehDesc, T2.U_VehModel, T1.U_KmsRead,   T1.U_BPCode, T0.CardName, T0.AddrType , T0.Building,T0.Block, T0.Address,T0.City,T0.ZipCode, T0.State1,T0.MailBuildi,T0.MailBlock, T0.MailAddres, T0.MailZipCod, T0.MailCity, T0.State2 ,T0.MailAddrTy,  T0.Phone1, T0.Phone2, T0.Cellular FROM [dbo].[OCRD]  T0 INNER JOIN [dbo].[@ALD_JOBCARD]  T1 ON T0.CardCode = T1.U_BPCode INNER JOIN  [dbo].[@ALD_VEHMAST]  T2 ON T1.U_BPCode = T2.U_BPCode WHERE T1.U_CardDate BETWEEN [%0] AND [%1] ORDER BY T1.U_CardDate.
    this query is get all  customer data who are not come to service workshop for last 6 month. i want to filter data who are not come last 6 months this year. kindly assist me
    thank you.

    Check this:
    SELECT Max(T1.U_CardDate) 'Lase Serve Date', T1.U_JCardNo,T1.U_TypeSrv,T2.U_VehReg,Max(T2.U_PurchDt) 'Last Purchase', T2.U_VehDesc, T2.U_VehModel, T1.U_KmsRead, T1.U_BPCode, T0.CardName, T0.AddrType, T0.Building,T0.Block, T0.Address,T0.City,T0.ZipCode, T0.State1,T0.MailBuildi,T0.MailBlock, T0.MailAddres, T0.MailZipCod, T0.MailCity, T0.State2 ,T0.MailAddrTy, T0.Phone1, T0.Phone2, T0.Cellular
    FROM [dbo].[OCRD] T0
    INNER JOIN [dbo].[@ALD_JOBCARD] T1 ON T0.CardCode = T1.U_BPCode
    INNER JOIN [dbo].[@ALD_VEHMAST] T2 ON T1.U_BPCode = T2.U_BPCode
    WHERE T1.U_BPCode NOT IN
    (SELECT DISTINCT U_BPCode FROM dbo.[@ALD_JOBCARD] WHERE DateDiff(DD,U_CardDate,GetDate()) < 183)
    Group By T1.U_JCardNo,T1.U_TypeSrv,T2.U_VehReg,T2.U_VehDesc, T2.U_VehModel, T1.U_KmsRead, T1.U_BPCode, T0.CardName, T0.AddrType, T0.Building,T0.Block, T0.Address,T0.City,T0.ZipCode, T0.State1,T0.MailBuildi,T0.MailBlock, T0.MailAddres, T0.MailZipCod, T0.MailCity, T0.State2 ,T0.MailAddrTy, T0.Phone1, T0.Phone2, T0.Cellular
    ORDER BY T1.U_CardDate

  • To load non cumulative cube initialize opening balance in R/3. explain?

    To load non-cumulative cube i have to initialize opening balance in R/3(S278). please elaborate and what is S278 means is it LIS datasource please explain?
    Thank you,
    York

    Dear all,
    The data source 0EC_PCA_1  doesn't consider the opening balances i believe, can any experts help me solve this problem.
    Regards,
    M.M
    Edited by: Magesh Magesh on Jun 26, 2009 2:55 PM

  • Loading Non-Financial Data in Essbase

    I am new to Essbase and would some help understanding how I would load non-financial data into Essbase. The specific type of data that I'm looking to report on is from a university, reporting on the number of students that fall into various categories. I consider that this project would be similar to an employee reporting application. The project was originally implemented using OBIEE, but I was wondering how it could be done in Essbase.
    Thanks for any help,
    Mark

    My recommendation is to model the database in excel with the following restrictions:
    1) Use a single data grid (per sheet) with consistent "dimensions" for rows and columns, and an overall "header" to represent the entire set if more than one sheet is needed.
    2) Establish subtotals and totals with any appropriate formulas kept as simple as possible (i.e. SUM(range)).
    3) Use unique, meaningful names for all headers.
    This is an oversimplification, but if you can model your database this way, you will have a direct baseplate to use when creating the database in Essbase. You may have to make some changes, but you'll have a good start.
    A suggestion on the initial dimensionality based on what you said:
    - Accounts
    - Students
    - Classes
    - Categories
    - Periods
    If you can put a pivot table together with the data, you are nearly done already (well, mostly).

  • Execute query with non database block

    How to execute query with non database block when new form instance trigger.

    Hi Kame,
    Execute_Query not work with non database block. To do this Make a cursor and then assign values to non database block's items programmatically, see following example,
    DECLARE
    BEGIN
         FOR i IN (SELECT col1, col2 FROM Table) LOOP
                :block.item1 := i.col1;
                :block.item2 := i.col2;
                NEXT_RECORD;
         END LOOP;
    END;
    Please mark if it help you or correct
    Regards,
    Danish

  • Query on Non-base-table column in form

    Hi,
    Does anyone have an example of code to allow users to query on non-base-table column from forms? For example, a personnel form displays a persons' name and department name. The form is based on PERSON table, which contains the department id, not the name. The form uses post-query to display the department name. When in query mode, the user wants to enter department name, and display the people in the department (still using this form, which is based on PERSON table.
    Thanks!

    Try this:
    For data block person set these properties as follows:
    1.Set Query Data Source Name = "person , departments"
    2.Set DML data target name = "person"
    3.Set Where Clause to join i.e. condition "person.dno = departments.dno"
    For filed department name set these properties as follows:
    1.Data base item = "Yes"
    2.Column Name = "departments.dname"
    3.Query Only = "Yes"
    4.Insert Allowed = "No"
    5.Update Allowed= "No"
    6.Keyboard Navigable = "No"
    If you face ambiguous column name check for the same filed name exist on both tables and set column name for this filed to person.filed_name
    Regards
    null

  • Query only non numeric values in a column

    How to query only non numeric values in a cloumn.
    For example:
    Table1 has a column1(col1)
    Values:
    Row Value
    1 27376
    2 47D99
    3 83039
    4 DKFI*
    5 3J6
    Query should retrieve only rows(2,4,5).
    Thanks! for help
    Murali

    Version 2(PL/SQL) above is not clear enough, It can be tuned to the following:
    -- Create a function
    Create or replace function IsVARCHAR(pCol VARCHAR2) return VARCHAR2
    AS
    vNumber NUMBER := 0;
    begin
      vNumber := to_number(pCol);
      RETURN NULL;
    Exception
      When Others Then
        RETURN pCol;
    End;
    -- To See VARCHAR values (alpha-numeric) only!
    SELECT col1 FROM tab1
    WHERE IsVARCHAR(col1) IS NOT NULL;
    -- To See NUMBER values only!
    SELECT col1 FROM tab1
    WHERE IsVARCHAR(col1) IS NULL;Versatility here with PL/SQL, but I personally like SQL versions.
    Thx,
    SriDHAR

  • DMV quesiton. Can not run the DMV query in non system database.

    As the title .I can run following query when I use  'use master' , But don't work at the DB which be created my myself.
    --Error massage
    Msg 208, Level 16, State 1, Line 1
    Invalid object name 'SYS.DM_EXEC_QUERY_STATS'.
    --SQL Version : 2005
    --compatibility level : 90
    --The query
    SELECT TOP 10
    QT.TEXT AS STATEMENT_TEXT,
    QP.QUERY_PLAN,
    QS.TOTAL_WORKER_TIME AS CPU_TIME
    FROM SYS.DM_EXEC_QUERY_STATS QS
    CROSS APPLY SYS.DM_EXEC_SQL_TEXT (QS.SQL_HANDLE) AS QT
    CROSS APPLY SYS.DM_EXEC_QUERY_PLAN (QS.PLAN_HANDLE) AS QP
    ORDER BY TOTAL_WORKER_TIME DESC

    Yes, you can run the query under none system database.... Make sure that  your db is set 90.....
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • How to improve query & loading performance.

    Hi All,
    How to improve query & loading performance.
    Thanks in advance.
    Rgrds
    shoba

    Hi Shoba
    There are lot of things to improve the query and loading performance.
    please refer oss note :557870 : Frequently asked questions on query performance
    also refer to
    weblogs:
    /people/prakash.darji/blog/2006/01/27/query-creation-checklist
    /people/prakash.darji/blog/2006/01/26/query-optimization
    performance docs on query
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3f66ba90-0201-0010-ac8d-b61d8fd9abe9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ce7fb368-0601-0010-64ba-fadc985a1f94
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c8c4d794-0501-0010-a693-918a17e663cc
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/064fed90-0201-0010-13ae-b16fa4dab695
    This is the oss notes of FAQ on query performance
    1. What kind of tools are available to monitor the overall Query Performance?
    1. BW Statistics
    2. BW Workload Analysis in ST03N (Use Export Mode!)
    3. Content of Table RSDDSTAT
    2. Do I have to do something to enable such tools?
    Yes, you need to turn on the BW Statistics:
    RSA1, choose Tools -> BW statistics for InfoCubes
    (Choose OLAP and WHM for your relevant Cubes)
    3. What kind of tools is available to analyze a specific query in detail?
    1. Transaction RSRT
    2. Transaction RSRTRACE
    4. Do I have an overall query performance problem?
    i. Use ST03N -> BW System load values to recognize the problem. Use the number given in table 'Reporting - InfoCubes:Share of total time (s)' to check if one of the columns %OLAP, %DB, %Frontend shows a high number in all Info Cubes.
    ii. You need to run ST03N in expert mode to get these values
    5. What can I do if the database proportion is high for all queries?
    Check:
    1. If the database statistic strategy is set up properly for your DB platform (above all for the BW specific tables)
    2. If database parameter set up accords with SAP Notes and SAP Services (EarlyWatch)
    3. If Buffers, I/O, CPU, memory on the database server are exhausted?
    4. If Cube compression is used regularly
    5. If Database partitioning is used (not available on all DB platforms)
    6. What can I do if the OLAP proportion is high for all queries?
    Check:
    1. If the CPUs on the application server are exhausted
    2. If the SAP R/3 memory set up is done properly (use TX ST02 to find bottlenecks)
    3. If the read mode of the queries is unfavourable (RSRREPDIR, RSDDSTAT, Customizing default)
    7. What can I do if the client proportion is high for all queries?
    Check whether most of your clients are connected via a WAN connection and the amount of data which is transferred is rather high.
    8. Where can I get specific runtime information for one query?
    1. Again you can use ST03N -> BW System Load
    2. Depending on the time frame you select, you get historical data or current data.
    3. To get to a specific query you need to drill down using the InfoCube name
    4. Use Aggregation Query to get more runtime information about a single query. Use tab All data to get to the details. (DB, OLAP, and Frontend time, plus Select/ Transferred records, plus number of cells and formats)
    9. What kind of query performance problems can I recognize using ST03N
    values for a specific query?
    (Use Details to get the runtime segments)
    1. High Database Runtime
    2. High OLAP Runtime
    3. High Frontend Runtime
    10. What can I do if a query has a high database runtime?
    1. Check if an aggregate is suitable (use All data to get values "selected records to transferred records", a high number here would be an indicator for query performance improvement using an aggregate)
    2. o Check if database statistics are update to data for the Cube/Aggregate, use TX RSRV output (use database check for statistics and indexes)
    3. Check if the read mode of the query is unfavourable - Recommended (H)
    11. What can I do if a query has a high OLAP runtime?
    1. Check if a high number of Cells transferred to the OLAP (use "All data" to get value "No. of Cells")
    2. Use RSRT technical Information to check if any extra OLAP-processing is necessary (Stock Query, Exception Aggregation, Calc. before Aggregation, Virtual Char. Key Figures, Attributes in Calculated Key Figs, Time-dependent Currency Translation) together with a high number of records transferred.
    3. Check if a user exit Usage is involved in the OLAP runtime?
    4. Check if large hierarchies are used and the entry hierarchy level is as deep as possible. This limits the levels of the hierarchy that must be processed. Use SE16 on the inclusion tables and use the List of Value feature on the column successor and predecessor to see which entry level of the hierarchy is used.
    5. Check if a proper index on the inclusion table exist
    12. What can I do if a query has a high frontend runtime?
    1. Check if a very high number of cells and formatting are transferred to the Frontend (use "All data" to get value "No. of Cells") which cause high network and frontend (processing) runtime.
    2. Check if frontend PC are within the recommendation (RAM, CPU MHz)
    3. Check if the bandwidth for WAN connection is sufficient
    and the some threads:
    how can i increse query performance other than creating aggregates
    How to improve query performance ?
    Query performance - bench marking
    may be helpful
    Regards
    C.S.Ramesh
    [email protected]

  • Is there a way to prevent Mail from loading non system fonts?

    For over a year, and a system OS upgrade, Mail has been taking 7 - 10 minutes to load all the thousands of fonts I have on my computer for graphic design. This started with Snow Leopard on my 2009 Mac Pro (10 GB RAM, 2 TB HDD). At first I didn't know why the computer was taking such a long time to finish boot up. So I reformatted the drive--zeroing it out. Then I installed Mavericks and reinstalled everything else. Finally I tried logging the system activity during startup and noticed that something to do with fonts took up the biggest chunk of this time. Because Mavericks loads any programs you leave running at shut down, I saw that if Mail had the fonts window open, the list of fonts would slowly grow, filling up with the many font families I use for my work. I called tech support for my font management utility but they say the fonts are not in the system and and shouldn't affect the system during startup. In the end I gave up and just go drink a few coffees after hitting the start button. It's like going back to the early days 25 years ago.
    Can I stop Mail from loading any non-system fonts? I never use anything but the default font.

    Hey SchenkerBob,
    It is possible to disable non-system fonts temporarily for all applications using the Font Book application. This article explains how to do so -
    Mac Basics: Font Book - Apple Support
    In particular -
    Disable and enable specific fonts
    In situations where you'd like to prevent a font from being available in applications, but you don't want to completely remove the font from your Mac, you can use Font Book to disable the font.
    In Font Book, click "All Fonts" in the Collection column.
    Click the name of the font in the Font column.
    Choose Disable "Font Name" Family from the Edit menu.
    Since it might be problematic to have to disable each font individually, you can create a collection of fonts and disable the collection. See the article for how to create a font collection -
    Organize fonts as collections
    When working with fonts, you may discover that you use certain fonts frequently, but rarely use others. To make it easier to find the font you are looking for, you can organize your fonts into collections.
    From the Font Book File menu, choose New Collection.
    Type in a name for the new collection.
    Click "All Fonts" in the Collection column.
    Drag the fonts that you want from the Font column onto the name of your new collection in the Collection column.
    You can then disable collections of fonts -
    You can also disable or enable all fonts in a collection: Click the name of the collection in the Collection column, then choose Disable "Collection Name" or EnableCollection Name" " from the Edit menu. 
    Thanks for using Apple Support Communities.
    Happy computing,
    Brett L 

  • Loading non cumulative values

    hi,
    Why do we require two separate infosources for loading the initial non cumulative value and the subsequent non cumulative changes?
    Regards
    Deepti

    Hi Deepti,
    Basically you can omit the first step of  initialization with one infosource and just you can use only infosource to laod full data as two infoaources are seldom used.
    But basically first infosource is for initialization(One value for a combination of caharcteristica) and the second one brings the change after wards).
    But this funcionality you can achieve through one infosource also no need for another one.
    Even an int and full repair request will do the same thing and subsequent delta's will pick the changes
    More information you can find on this link.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/02/9a6a22244411d5b2e30050da4c74dc/content.htm
    Assign points if helpful
    Thanks

  • Loading non Cumulative cube

    Hi BW Experts,
    How can I upload non cumulative cube's ?

    Hi Hoyer,
    Are requesting for steps ?
    Then :-
    1) Iniatialize opening balance in R/3 (S278)
    2) Activate extract structure MC03BF0 for data source 2LIS_03_BF
    3) Setup historical material documents in R/3
    4)Load opening balance using data source 2LIS_40_S278
    5)Load historical movements and compress without marker update
    6)Setup V3 Update
    7)Load deltas using 2LIS_03_BF
    TQ
    Kumar

  • Query with non partition key in partitioning table

    i compare query select with non-partition key condition in table partition with 3, 4 and 6 partition.
    time execution for 3 partition faster then 4 partition, time execution for 4 partition faster than 6 partition.
    i know processing query select is selection all partition, but i don't know what make time execution different between 3, 4 and 6 partition??
    whether the transfer from one partition to another partition takes time?
    this example sql trace query select for 3,4 and 6 partition
    3 partition
    SELECT *
    FROM
    EQU_PARAM_MONITORINGHASH WHERE TO_CHAR(time_stamp,'mm/yy')=('02/09')
    call          cpu    elapsed       disk        rows
    Parse        0.00       0.00          0           0
    Execute      0.00       0.00          0           0
    Fetch        5.70       7.57      25291     1157583
    total        5.70       7.57      25291     1157583
    Parsing user id: 61  (SKENARIO1)
    Rows     Execution Plan
          0  SELECT STATEMENT   MODE: ALL_ROWS
          0   PARTITION HASH (ALL) PARTITION: START=1 STOP=3
          0    TABLE ACCESS   MODE: ANALYZED (FULL) OF
                   'EQU_PARAM_MONITORINGHASH' (TABLE) PARTITION: START=1 STOP=34 partition
    SELECT *
    FROM
    EQU_PARAM_MONITORINGHASH WHERE TO_CHAR(time_stamp,'mm/yy')=('02/09')
    call          cpu    elapsed       disk        rows
    Parse        0.00       0.00          0           0
    Execute      0.00       0.00          0           0
    Fetch        5.46       8.03      25126     1157583
    total        5.46       8.03      25126     1157583
    Parsing user id: 62  (SKENARIO2)
    Rows     Execution Plan
          0  SELECT STATEMENT   MODE: ALL_ROWS
          0   PARTITION HASH (ALL) PARTITION: START=1 STOP=4
          0    TABLE ACCESS   MODE: ANALYZED (FULL) OF
                   'EQU_PARAM_MONITORINGHASH' (TABLE) PARTITION: START=1 STOP=46 partition
    SELECT *
    FROM
    EQU_PARAM_MONITORINGHASH WHERE TO_CHAR(time_stamp,'mm/yy')=('02/09')
    call          cpu    elapsed       disk        rows
    Parse        0.00       0.00          0           0
    Execute      0.00       0.00          0           0
    Fetch        5.73       9.13      25190     1157583
    total        5.73       9.13      25190     1157583
    Parsing user id: 63  (SKENARIO3)
    Rows     Execution Plan
          0  SELECT STATEMENT   MODE: ALL_ROWS
          0   PARTITION HASH (ALL) PARTITION: START=1 STOP=6
          0    TABLE ACCESS   MODE: ANALYZED (FULL) OF
                   'EQU_PARAM_MONITORINGHASH' (TABLE) PARTITION: START=1 STOP=6thanks
    best regards
    eko

    ekopur wrote:
    i compare query select with non-partition key condition in table partition with 3, 4 and 6 partition.
    time execution for 3 partition faster then 4 partition, time execution for 4 partition faster than 6 partition.
    i know processing query select is selection all partition, but i don't know what make time execution different between 3, 4 and 6 partition??
    whether the transfer from one partition to another partition takes time?
    this example sql trace query select for 3,4 and 6 partition
    3 partition
    SELECT *
    FROM
    EQU_PARAM_MONITORINGHASH WHERE TO_CHAR(time_stamp,'mm/yy')=('02/09')
    call          cpu    elapsed       disk        rows
    Parse        0.00       0.00          0           0
    Execute      0.00       0.00          0           0
    Fetch        5.70       7.57      25291     1157583
    total        5.70       7.57      25291     1157583
    Parsing user id: 61  (SKENARIO1)
    Rows     Execution Plan
    0  SELECT STATEMENT   MODE: ALL_ROWS
    0   PARTITION HASH (ALL) PARTITION: START=1 STOP=3
    0    TABLE ACCESS   MODE: ANALYZED (FULL) OF
    'EQU_PARAM_MONITORINGHASH' (TABLE) PARTITION: START=1 STOP=34 partition
    SELECT *
    FROM
    EQU_PARAM_MONITORINGHASH WHERE TO_CHAR(time_stamp,'mm/yy')=('02/09')
    call          cpu    elapsed       disk        rows
    Parse        0.00       0.00          0           0
    Execute      0.00       0.00          0           0
    Fetch        5.46       8.03      25126     1157583
    total        5.46       8.03      25126     1157583
    Parsing user id: 62  (SKENARIO2)
    Rows     Execution Plan
    0  SELECT STATEMENT   MODE: ALL_ROWS
    0   PARTITION HASH (ALL) PARTITION: START=1 STOP=4
    0    TABLE ACCESS   MODE: ANALYZED (FULL) OF
    'EQU_PARAM_MONITORINGHASH' (TABLE) PARTITION: START=1 STOP=46 partition
    SELECT *
    FROM
    EQU_PARAM_MONITORINGHASH WHERE TO_CHAR(time_stamp,'mm/yy')=('02/09')
    call          cpu    elapsed       disk        rows
    Parse        0.00       0.00          0           0
    Execute      0.00       0.00          0           0
    Fetch        5.73       9.13      25190     1157583
    total        5.73       9.13      25190     1157583
    Parsing user id: 63  (SKENARIO3)
    Rows     Execution Plan
    0  SELECT STATEMENT   MODE: ALL_ROWS
    0   PARTITION HASH (ALL) PARTITION: START=1 STOP=6
    0    TABLE ACCESS   MODE: ANALYZED (FULL) OF
    'EQU_PARAM_MONITORINGHASH' (TABLE) PARTITION: START=1 STOP=6
    I'm assuming you recreated the table a couple of times with different numbers of hash partitions. (Tip: always use a power of two for the number of hash partitions - it keeps them all around the same size if you are using the feature on an appropriate data set.)
    There isn't really enough difference in time within the database to make any sensible comment about the difference in times. I note that you have also edited out the fetch count for the 1.1 million rows fetched, and have not captured (or perhaps just not printed) the wait times, so we don't know where you spent the time inside and outside the database.
    For all we can tell, the difference you are worried about might simply be network time on the fetch calls, and have nothing to do with the extract you've published.
    Regards
    Jonathan Lewis

  • Problem in Execute query on non-database block and database block together

    Hi All,
    In my form,i have
    1. First block is Non-database block with one non-database item.
    2. Second and third blocks are database blocks.
    Now the problem is that i want to perform execute-query for all the blocks.
    If the cursor is on the non-database item of 1st block and i clicks on the "Enter-query" then i am getting message " This function can not be performed here".
    If i click on the item of the database block and then clicks on the "Enter-query" and then "execute-query" it's working fine.
    But i don't want to do in this way.
    My cursor will be on the First block only and then it should perform execute-query.
    I am using this non-database item to copy value of this item to the item of the database block item.
    I think i make you understand about my problem.
    I am using forms 10g on Window xp.
    Please help me.

    Hi!
    Simply create a enter-query trigger on the non-database-block:
    begin
    go_block ( 'database_block' );
    enter_query;
    end;If your search criteria is in the non-database-item in the first block,
    you actually do not need the enter_query build-in.
    Just create a execute-query trigger on the first block like:
    begin
    go_block ( 'database_block' );
    execute_query;
    go_item ( :System.trigger_item );
    end;And in a pre-query trigger on the database-block copy the
    value of your seach item into the item you want to search for.
    Regards

Maybe you are looking for