Extra overhead with Collection and List types

The documentation says about Collection and List types :
"There is extra overhead for Kodo to maintain collections where each
element is not guaranteed to be unique."
Why is it so ?
Thanks in advance.
Regards.

We can make some optimizations when we know each element is unique.

Similar Messages

  • Can you sort ibookshelf books by collections and list all of the books in each collection?

    can you sort ibookshelf books by collections and list all of the books in each collection?

    The collection changes a little by the criteria you use to view the books, and you can view them by Title, Author, and Category. So, yes, you can.
    The default view is Book view. On the upper right part of the page, you'll see four white blocks - that's the icon for book view. The icon on the right has three white lines; that's where you find Title, Author, and Category view. You can't create folders in any view.

  • To differenciate string and list types in Xpress language

    Hi! I have a question in Xpress language:
    I'd like to know how to differentiate between string and list types. For example, *<s>orange</s>* and *<list><s>orange<s></list>*
    How does it know Xpress language what is it string or list?
    Thanks a lot.
    P.D. Excuse for the strike text, I don't know why it shows striked test.

    Try this:
    <instanceof name='List'>
    <ref>orange</ref>
    </instanceof>
    Edited by: Mindie on Mar 28, 2008 8:12 AM
    Edited by: Mindie on Mar 28, 2008 8:13 AM
    Edited by: Mindie on Mar 28, 2008 8:13 AM
    Edited by: Mindie on Mar 28, 2008 8:13 AM

  • How do you link styles with bullets and lists?

    It seems that amongst all the other hapless changes in Pages 5 there is no way to link bullets & lists to a style. I hope I'm missing something.
    If I create a style with a numbered list it, then click on the next paragraph I'd like to have that style, the style name changes along with font characteristics and alignment, but no bullets or numbers.  Moreover, pages crashes often when I try to update bullets and lists.
    I have a fantasy that somewhere in Pittsburgh where I beieve the Pages development team lives there's a building full of coders passionately fixing all these things. If just the people on this thread put in $20, the former cost of Pages, we could probably hire a team to do the work for them.

    1. Yes it is possible (and relatively easy)
    2. You should learn about applets, image handling, servlets and jdbc
    Good luck

  • Help me please : Serious problems with collection-mapping, list-mapping and map-mappi

    Hi everybody;
    I have serious problems with list-mapping, collection-mapping and map-mapping.
    Acording to specifications and requirements in a system I am working on it is needed to
    get a "list" of values or an indivudual value.I am working with ORACLE 9i Database,
    ORACLE 9i AS and ORACLE 9i JDEVELOPER.
    I tried to map a master-detail relationship in an entity-bean, using list-mapping.
    And this was very useful in order to get a "list" of details, ...but, when I wanted
    to get a single value I have some problems with persistence, something about "saving a state"
    despite I just want to get the value of a single detail.
    I decided to change it to map-mapping and the problem related with a single detail
    worked successfully, but I can get access to the whole bunch of details.
    May anyone of you help me with that?
    I am very confused I do not know what to do.
    Have any of you a solution for that problem?
    Thank you very much.

    Have you tried a restore in iTunes?

  • Custom report with  FAGLFLEXA and "Document type"

    We have new GL and we must do a custom report like this:
    Hierarchy of ProfitCentre ______Credit for mm.yyyy___ Debit for mm.yyyy 
    Profit centre 1_____________________ c1_______________d1
    Profit centre 2_____________________ c2_______________d2
    ect. ....
    The value of c1 is the sum of monthly credit for a profit centre, for a group of accounts, but only for certain "document type".
    The "Document type" is what worries me.
    I have already written a similar report with Report Painter, reading data from the table FAGLFLEXT (0FL library), but took the full credit from the account (for all "document type"), without restrictions on the document type (the table  FAGLFLEXT not contain the field "document type").
    The data I need in my report, I can see with T. FAGLB03. Double-clicking on, for example, the value of credit you go into detail, and data can be selected for different "Document type". I still do not understand how it works and which tables use the T. FAGLB03 to have these data in detail.
    Please, help me what exactly to do?My questions are these?
    My principals questions are these:
    1 . I think, inevitably, i have to link two tables: FAGLFLEXA (the one with the given to him) and GKFP that contains the field BLART (Document Type). This is the right way? Is there another way?
    2 This report can be create with one of SAP tools: Report Painter, SAP Query, ... or the only solution is to write a program in ABAP?
    3.  If i'm not asking too much, you could give me a step-by-step description of how i should proceed?
    All suggestions are welcome.
    Thank you in advance. Many points to assign who will help me to solve this problem

    I know PowerShell can help you with the Get-SCSMRelatedObject command but you would have to write a small script to get that to work en mass.
    http://smlets.codeplex.com/

  • I am trying to experiment with Tweens and Easing Types in ActionScript 3.0, Adobe Flash CS4. help

    I am using ActionScript 3.0, Adobe Flash CS4 software
    I have created Tweens for some MovieClip properties and experimented with some of the easing types.
    This is what I have managed to create and works okay!
    grow_btn.addEventListener(MouseEvent.CLICK, grow);
    shrink_btn.addEventListener(MouseEvent.CLICK, shrink);
    rotate_btn.addEventListener(MouseEvent.CLICK, rotate);
    hide_btn.addEventListener(MouseEvent.CLICK, hideClip);
    show_btn.addEventListener(MouseEvent.CLICK, showClip);
    fadeOut_btn.addEventListener(MouseEvent.CLICK, fadeOut);
    fadeIn_btn.addEventListener(MouseEvent.CLICK,fadeIn);
    function grow(e:MouseEvent):void {
                    var scale1:Tween = new Tween(instrument, "scaleX", Back.easeIn, 0, 1, 3, true);
                    var scale2:Tween = new Tween(instrument, "scaleY", Back.easeIn, 0, 1, 3, true);
    function shrink(e:MouseEvent):void {
    var oneSmall:Tween = new Tween(instrument, "scaleX", Back.easeInOut, 0, -.2, 3, true);
    var twoSmall: Tween = new Tween(instrument, "scaleY", Back.easeInOut, 0, -.2, 3, true);
    function rotate(e:MouseEvent):void {
    var spin:Tween = new Tween(instrument, "rotation", Elastic.easeOut, 0, 360, 5, true)
    function hideClip(e:MouseEvent):void {
    instrument.visible = false;
    function showClip(e:MouseEvent):void {
    instrument.visible = true;
    function fadeOut(e:MouseEvent):void {
    var tweenfadeOut:Tween = new Tween(instrument, "alpha", None.easeOut, 1, -.1, 3, true);
    function fadeIn(e:MouseEvent):void {
    var tweenfadeIn:Tween = new Tween(instrument, "alpha", None.easeIn, 0, 1, 3, true);
    I am having trouble creating Tweens and add easing types for the action script below!
    I keep getting error message (“Access of undefined property Sine”) for example when I type
    function hideClip(e:MouseEvent):void {
    var noClip:Tween = new Tween(instrument, "visible", Sine.easeOut, 0, 1, 3, true);
    Can anyone help???? The original script is below
    hide_btn.addEventListener(MouseEvent.CLICK, hideClip);
    show_btn.addEventListener(MouseEvent.CLICK, showClip);
    function hideClip(e:MouseEvent):void {
    instrument.visible = false;
    function showClip(e:MouseEvent):void {
    instrument.visible = true;

    make sure you have imported the Sine class
    import fl.motion.Sine;

  • PLSQL Collections and record types

    Hi,
    I'm trying to use collection in my code in 10g database
    declare
    cursor c_cur
    is
    select  * from table;
    TYPE tbl_cur_lines IS TABLE OF c_cur%ROWTYPE
          INDEX BY BINARY_INTEGER;
          l_cur_rec    tbl_cur_lines;
    begin
    OPEN c_cur;
    FETCH c_cur BULK COLLECT INTO l_cur_rec;
    CLOSE c_open_trx;                       
    FOR i IN 0..l_cur_rec.COUNT-1
    LOOP
              --  do something
    END LOOP;
    end;if i use count for number of records its working
    declare
    cursor c_cur
    is
    select  * from table;
    TYPE tbl_cur_lines IS TABLE OF c_cur%ROWTYPE
          INDEX BY BINARY_INTEGER;
          l_cur_rec    tbl_cur_lines;
    begin
    OPEN c_cur;
    FETCH c_cur BULK COLLECT INTO l_cur_rec;
    CLOSE c_open_trx;                       
    FOR i IN l_cur_rec.FIRST..l_cur_rec.LAST
    LOOP
              --  do something
    END LOOP;
    end;If i use above code i'm getting following error
    ORA-06502: PL/SQL: numeric or value error
    Can some explain difference...
    Thanks in advance!
    Edited by: user641008 on Jun 3, 2011 2:31 PM

    FOR i IN 0..l_cur_rec.COUNT-1
    here, index "i" expect an integer value and it is getting and integer, hence not
    giving an error, though your cursor did not fetch any row.
    in the next case,
    FOR i IN l_cur_rec.FIRST..l_cur_rec.LAST
    your cursor did not fetch any row and hence
    first element in your collection is NULL( in other words, there is no index value in collection) while "i" is expecting an integer,
    thats why you are getting error "ORA-06502: PL/SQL: numeric or value error"
    It is always good practice, check collection count before actually processing by loop.
    Change as follows
    declare
    cursor c_cur
    is
    select  * from table;
    TYPE tbl_cur_lines IS TABLE OF c_cur%ROWTYPE
          INDEX BY BINARY_INTEGER;
          l_cur_rec    tbl_cur_lines;
    begin
    OPEN c_cur;
    FETCH c_cur BULK COLLECT INTO l_cur_rec;
    CLOSE c_cur;                       
    if  l_cur_rec.count>0 then      -- Add condition here
    FOR i IN l_cur_rec.FIRST..l_cur_rec.LAST
    LOOP
              --  do something
    END LOOP;
    end if;
    end;

  • Business event with resources and resource type

    Hi,
    I am doing bdc for tcode pv10,i want to update the resource type and resource,i tried with it,i do not get idea,pls give me u r suggestions.
    cheers,
    karthi

    Hi,
    You need to click on the 'Resource Selection' button on the top left hand corner of the create event screen.
    If you do not see any resources there, it means you have not added resources to your event type. Go to PP01, and create relationship A022 (requires resource type).
    For rooms and materials, this is fine. For instructors, you need to create relationship A026 (is held by) also.
    Regards,
    Neha
    <i><b>PS:Reward if helpful</b></i>

  • Help with Collections and Reference Cursor

    I have a procedure where I want to populate a table type and then return the results with a reference cursor so the results can be used by Hyperion. Here are the type declarations:
    create or replace type gg_audit_object as object (
                   owner varchar2(30),
                   table_name varchar2(30),
                   lag_time number)
    CREATE OR REPLACE TYPE gg_audit_table AS TABLE OF gg_audit_object
    and here's the procedure:
    CREATE OR REPLACE PROCEDURE ETSREP_GG_AUDIT_XX2 (results_cursor in out types.cursorType)
    AS
    v_owner varchar2(30);
    v_table_name varchar2(30);
    v_column_name varchar2(30);
    type v_record is record(
    owner varchar2(30),
    table_name varchar2(30),
    lag_time number);
    r1 v_record;
    t1 gg_audit_table;
    table_cr types.cursorType;
    sql_stmt varchar2(5000);
    cursor table_select is
    select g.owner,
    g.table_name,
    g.column_name
    from gg_tables_to_audit g
    where g.active_ind = 'Y'
    order by 1,2;
    BEGIN
    rec_count := 0;
    for main_rec in table_select loop
    sql_stmt := '';
    v_owner := main_rec.owner;
    v_table_name := main_rec.table_name;
    v_column_name := main_rec.column_name;
    sql_stmt := 'select '
    || '''' || v_owner || ''','
    || '''' || v_table_name || ''','
    || 'sysdate - max(' || v_column_name || ') '
    || 'from ' || v_owner || '.' || v_table_name;
    open table_cr for sql_stmt;
    FETCH table_cr into r1;
    close table_cr;
    -- here's where I'm stumped. I need to take the values from r1 and put them
    -- into t1.
    -- Something like this (or whatever is the correct way to do it)
    -- insert into table(t1) values (r1.owner, r1.table_name, r1.lag_time);
    end loop; -- end table_select loop
    -- and then open a reference cursor and select them out of t1.
    -- Something like
    -- open results_cursor for select * from t1;
    END;
    Just trying to avoid creating a real table and populating that. Any guidance would be greatly appreciated.

    Found the perfect example on Ask Tom. Here is the solution.
    create or replace package GG_AUDIT
    as
    type rc is ref cursor;
    procedure GG_AUDIT_PROC( r_cursor in out types.cursorType );
    end;
    create or replace package body GG_AUDIT
    as
    procedure GG_AUDIT_PROC( r_cursor in out types.cursorType )
    is
    l_data gg_audit_table := gg_audit_table();
    table_cr types.cursorType;
    type v_record is record(
    owner varchar2(30),
    table_name varchar2(30),
    lag_time number);
    r1 v_record;
    sql_stmt varchar2(5000);
    v_owner varchar2(30);
    v_table_name varchar2(30);
    v_column_name varchar2(30);
    rec_count number := 0;
    cursor table_select is
    select g.owner,
    g.table_name,
    g.column_name
    from gg_tables_to_audit g
    where g.active_ind = 'Y'
    order by 1,2;
    begin
    for main_rec in table_select loop
    sql_stmt := '';
    v_owner := main_rec.owner;
    v_table_name := main_rec.table_name;
    v_column_name := main_rec.column_name;
    sql_stmt := 'select '
    || '''' || v_owner || ''','
    || '''' || v_table_name || ''','
    || 'sysdate - max(' || v_column_name || ') '
    || 'from ' || v_owner || '.' || v_table_name;
    open table_cr for sql_stmt;
    FETCH table_cr into r1.owner, r1.table_name, r1.lag_time;
    close table_cr;
    rec_count := rec_count + 1;
    l_data.extend;
    l_data(rec_count) := gg_audit_object(r1.owner, r1.table_name, r1.lag_time);
    end loop;
    open r_cursor for select * from TABLE ( cast ( l_data as gg_audit_table) );
    end; -- end procedure
    end;
    Works perfectly. Thanks guys.

  • Check table with Plant and material type

    xperts,
    i m trying to find a check table with fields werks and mtart.

    Hi,
    NO ,its not possible to get from only one table...
    werks  -
    T001W
    mtart----
    t134.
    Regards,
    Rohan.

  • POST LION INSTALL NO SYNC WITH IPHONE AND CANNOT TYPE ON PAGES. AM I THE ONLY ONE?

    RELATED TO THE INABILITY TO TYPE ON PAGES IS NOT BEING ABLE TO MOVE THE CURSOR TO DO A GOOGLE SEARCH. BUT IF YOU GO TO AN OLD SUBJECT, "APPLE NEWS" FOR EXAMPLE THEN I CAN TYPE OVER THE SUBJECT AS NORMAL. BUT IF THE SEARCH SITE IS BLANK TYPING DOES NOT WORK. ANY CORRECTION TO ALL OF THIS?

    Try Software Update.  I just found a new version of iTunes and am downloading it.
    And also an update to iWork.  May be the issue you are seeing.
    Phil

  • Collecting and bundling messages - transformation n- 1 messages problem

    Hi guys,
    I try to implement the scenario with collecting and bundling messages. I have a question: when you look at the samples in Basis6.40 SW Component, namespace http://sap.com/xi/XI/System/Patterns, there is an example, which uses message mapping BpmPatternCollectMerge.
    My question is: how can this mapping work??? it is mapping of N messages into 1 of the same type!!
    And when you try to test it, it does not work...
    Can you help, how to solve it? Or any ideas for other possibilities, how to merge the messages?
    Thanx, Peter

    Hi,
    To perform a N:1 transformation, these are the follwing important steps,
    DESIGN
    1. In your message mapping, make sure that the occurence of the source message interface is made to be n.
    2. Likewise, in your Interface mapping, the occurence of the Source Message Interface should also be made N.
    CONFIGURATION
    If you are using SP14 or SP15, the mapping can be done without a BPM as follows,
    u will have to go for a BPM with a receive step inside a loop with a multiline container element and the transformation step outside the loop to do the N:1 mapping
    Hope this clarifies and helps,
    Regards,
    Bhavesh
    Message was edited by: Bhavesh Kantilal

  • Smart form printing issue with LOCL and SAP printer

    Hi,
    The issues are as follows:
    1. the top portion of the Invoice and PO does not print when using the SAP printer (works when using LOCL)
    2. the shaded areas of the Order Confirmation and Invoice are black when printing to a SAP printer (works when using LOCL)
    In an attempt to correct the printing issue is was suggested that we change the SAP printer device type from HPLJ4 to POST2. This did address the problem where the shaded areas were black but then we received reports that other reports printed "garbage". Its possible that using POST2 device type causes issues when printing to HP compatible printers.
    Apparently all the testing was done using the SAP printer LOCL and not the SAP printer name and SAP spool system. LOCL uses the SAP GUI and Windows system to produce the output. Our production users at the plant site and Toledo are using SAP defined printers with the device type of HPLJ4. HPLJ4 is our standard here as OC for our printer definitions and we have HP compatible printers installed in our Toledo location and all of our remote sites. We need to be able to correctly print the Invoices, Purchase Orders, Sales Order Confirmations on our SAP printers.
    What can be done to the reports to allow them to print on our HPLJ4?
    Thanks, Prathap

    Hi Prathap,
    Check the background shading of the windows of the Smartform where you get the black boxes. If it is set something like this:
       Color: White
       Saturation: 100%
    this can be the problem.
    I know it is strange but some black and white printers cannot handle this setting. They only know one color black so the ignore the color setting and just take the saturation 100% setting.
    The reason it works with local and device type SAPWIN is that the print data is created in Windows and sent to the printer as graphic.
    Please change the shading for window MAIN -> tab 'Output Options' to:
       Color: Black
       Saturation: 0%
    and this should resolve the problem.
    Then create a new spool and check if the problem is resolved. See SAP Note #400050.
    Regards,
    Aidan

  • Defining Record and Table Types

    Is there a good tutorial out there somewhere that provides good examples on how to define and work with Record and Table Types? How to define and work with an entire record or table as opposed to just a variable?
    For instance- I'd like to create a cursor of records from a table, loop through each record to examine variable values, and in some instances insert those entire records into another table.
    Thanks in advance for any suggestions.

    Oracle documentation is excellent (Lots of live examples that can be cutNpaste) place to start.
    http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96624/05_colls.htm
    Is there any thing specific you are looking for?
    vr,
    Sudhakar B.

Maybe you are looking for