Rebuild the table effectively

Hi all

I have an array of 10 elements, for example.  I need to remove some items within the table if the elements meet a criterion.  I know how to do this, but I don't know is it the effective must do it, because I will need to use the 'build' in a loop, and I know it's a big no, no, if I can help it.

I have attached an example of my problem and my approach.  Note that the condition allows you to select which item to select in the input array is just an example.  The State could be anything.

Replacement indicated, I thought (I guess I can code some stuff, but I'd like to hear your suggestion first):

1. I thought to use the deletion of the table, but I thought it will be messy, because once I delete a single element, indexing would spoil a little.

2. I thought to initializaing an array of fixed size and replace the element of this array with elements taken from the range on the other, but not sure it's worth it to go through the extra trouble.

3. it will be nice if there is a function that will display an array of indexes of all the items in a table of entry that correspond to a criterion.  I know that there is a function that will do that but it's only for a single item.

4. in addition, I'll be more enjoyable if there is a removal of the function array that could take an array of index, remove several elements of an array at the same time.

Yik

See this discussion.

jyang72211 wrote:

4. in addition, I'll be more enjoyable if there is a removal of the function array that could take an array of index, remove several elements of an array at the same time.

Function "delete table" should accept a table to index

Tags: NI Software

Similar Questions

  • Page indent the problem with the table of contents entries...

    I have a few entries of table of contents running on more than one line. I would like the text to be indented from the establishment right indent/margin so that text does not as far as the Page numbers on the right margin of the text TOC block extend existing. I put a tab on the right so that the page numbers are tabulated on the right edge of the frame, but if I bring you the right margin with several (currently 5 mm) indenting, I can't have a tab stop to the page outside of the right margin.

    If I insert soft-return/new line tanks they wil get lost every time I have rebuild the table of contents (there will be a lot of it!)

    Any ideas, I'm sure it happens all the time for designers of the book.

    The same way you have a withdrawal of first line, on the left there is a final withdrawal of the straight line. You can set the right two inches (for example) withdrawal and removal of stretch to neutralize two thumbs, all on a single line will go completely to the right of the frame, and any point edge requiring line breaks will break two inches to the left of the right edge of the frame, while the last line will go to the right edge.

  • Index rebuild required after truncate the table and load data

    Hello


    I have a situation that we truncate tables bit and then we loaded data [only content] on these tables. What you need to rebuild the index online is necessary or not?


    And another question is if we drop a few clues is the total amount of space is released or not. And re-create indexes will use the same amount of space. As I don't have disk space more? In this situation, rebuild the index online will be a better idea...

    Can you please on this...


    truncate the table some the few loading tables + reconstruction markings online is the best (or) droping little tables, a few tables loading + re-create the index is better

    Can you suggest the best way... We have a time that it currently we don't have enough space on the disk... [Option should not effect the space]

    user13095767 wrote:
    Ok. I have it...

    u want to say if we disbale the index while loading... Next, we need to spend the time to build.

    If the indexes are enabled, then rebuild again is not necessary after loading tables...

    Please answer if my understanding is correct...

    above is correct

    >

    If so, how abt the differences in the space occupied by the spaces of storage during the index rebuild and re-create... T he acquires more space if recreate us [deletion and creation] or rebuild online is preferable to an index...?

    space used is the same for all options.

  • Shrink the table, rebuild the index?

    I need to reduce some very large tables after the removal of lines and I want to validate the script to run. I was thinking something like this:
    run_deleting_process;
    change the movement line of table my_tableI enable;
    ALTER table my_table retractable space WATERFALL;
    change the movement line of table my_tableI disable;
    I need to rebuild the index after that?, or if I rebuild the markings, can I delete clause CASCADE of the command? It is recommended to run utltrp.sql after shrink the table?, maybe some dependent object needs to be recompiled after the reduction of a table?
    The database version is 11.1.0.7 and documentation does not specify that the index rebuild is required, but I realized it is a desition normall when the narrowing of the tables.
    Thank you

    No there is no rebuild the index after shrinkage. And if you use "cascade", your index will be supported. You do very well.

    Visit this link as well.

    http://www.orafaq.com/Forum/t/137522/2/

  • Items 10 freezes after attempting in vain to rebuild the content and the effects library, help?

    Hi guys,.

    I recently received some actions and progressed to install as I did with actions in the past... Put them in the file of the photo effects, then go to the locale folder and delete the file MediaDatabase.db3. (I'm on a mac, in the case that it is different for the PC).

    He's worked in the past for me, but for some reason, the last time I tried, the content library and effects would not rebuild. He got 75% done and then frozen.

    Fortunately I had kept an old MediaDatabase.db3 file to the case where that ever happened. So I just deleted the unfinished MediaDatabase.db3 file and put the old one back in the folder and opened 10 items. Items 10 open, but then wouldn't let me use all the menus. I got the death spinning beachball.

    I don't know what happened... like I said, I have nothing was out of the ordinary and it worked for me before!

    Any suggestions? Short of completely reinstall the elements (which I don't know even if I do, since I've only got an activation code when I bought it.)

    Thank you in advance!

    Yes, you can reinstall the PES, but that shouldn't be necessary. Activation related material is so it is not serious, and uninstaller gives you the ability to disable during the uninstallation. Try to remove the mediadatabase once again, and this time also delete thumbsDatabase.db3, which is in the hard drive > library > Application Support > Adobe > Photoshop Elements > 10.0.

    That's assuming this isn't the app store version. Is it?

  • ORA-14456: can not rebuild the index on a temporary table

    change the IND_DEBITDOCUMENT TABLESPACE INDEXDATA index rebuild
    *
    ERROR on line 1:
    ORA-14456: can not rebuild the index on a temporary table


    why it is given such error?

    Thanks in advance.

    This information is always kept to user_ | all_ | dba_ tables, in this case in the temporary column.

    Obvious, isn't it?

    ---------
    Sybrand Bakker
    Senior Oracle DBA

  • The most effective way to insert form data into multiple tables and w/autonum

    Hi all, this is my first post here. I am new to APEX and PL/SQL. I have ColdFusion and SQL, and I'm used to perform CRUD operations in my CF Tags application files. From what I've read so far, so if this is accurate, it seems that it is more efficient to perform most of the CRUD operations on the database side, I hope that for advice on the best way to accomplish what I ask - even if I'm trying to do is better off in my new APEX application I am open to this information as well.

    I have a form whose data must reside in two tables. Table A is a one-to-one relationship table and stores General information for each request. Table B is a table of one-to-many observations and should store unique records for each type of comment entered on the form, of which there are 3 comment fields on the form, I'd end up with 3 disks in table B for 1 in table A. I am generating an AutoNumber for table A with a sequence and relaxation. I want to do is take the AutoNumber I just created and use it for insertion in the Table B each insertion I have to do. This is where I am stuck.

    I would like to comment on 1) where I should put all these operations and 2) how best to go about what I want to do coding. In ColdFusion, it is as simple as inserting the record in Table A, immediately asking to table A more recent recording and storing (auto) ID in a variable and then using this var for any other table insertions, I had to do. I know it must be at least a little easier in the Oracle world, I just need a nudge in the right direction. Thank you!

    OraclePledge,

    You're pretty close to not having worked with oracle a lot.

    This section is backwards:

    insert into sch.tbl_main(cust_lname,cust_fname,acct_num)
    values(:P3_CUST_LNAME,:P3_CUST_FNAME,:P3_ACCT_NUM);
    
    select "SCH"."TBL_MAIN_SEQ".currval
          into
          v_ID
          from dual;
    

    Even if it will work if you only have a single user, it's a potential bug with two or more users. First select the key (if it's first use nextval rather than currval) can use it in the insert statement.

    See you soon,.
    Janet Tyson

    Published by: Tyson Janet on June 23, 2011 10:48

  • What is the most effective way to update tables when converting the RTF to FM 9.0?

    Hello once again, editors.

    My procedure:

    1. Word doc saved. Rich TEXT format and opened it in FM 9.0.
    2. Imported from all formats from an FM file,
    3. Used a third-party plugin or MIF to replace paragraph styles.
    4. Remove all the styles from Word of left-over of the FMP catalog.

    Problem: Doc contains dozens of tables, which came the format of unknown table 'Table' (in the table designer). In the MIF file I changed all instances of < 'Table' TblTag > to < TblTag "DefinitionsTable" > with good results - except that they are wide 6.5 "all and I need them to be the usual width for this format of table (5.75").

    Click Table > resize columns and the option button "by the scaling to the width for a total of 5.75" is already selected, so all that I have to do is he reapply by clicking on the button resize in this dialog box. The table snaps in the right size and position, everything is fine - except that I have to do this same procedure around 9 zillion times. So what I need is a faster way to do the same thing.

    Here is the table format in the MIF, but it represents only two columns (Num Num 1 and 0)-probably because this table is defined as having two columns. But the charts that I brought the RTF have three. And curiously, the values for TblColumnWidth for each of these two columns don't total still 5.75.

    < TblFormat
    < TblTag "DefinitionsTable" >
    < TblColumn
    < TblColumnNum 0 >
    < TblColumnWidth 1,22917 ">
    < TblColumnH
    < PgfTag "TableHeading" >
    > # end of TblColumnH
    < TblColumnBody
    < PgfTag "FieldName" >
    > # end of TblColumnBody
    < TblColumnF
    < PgfTag "TableHeading" >
    > # end of TblColumnF
    > # end of TblColumn
    < TblColumn
    < TblColumnNum 1 >
    < TblColumnWidth > 3,30209 "

    I have to do a presentation tomorrow, part concerns the conversion of Word in FM and it is a necessary component. I wish I had seen this problem a couple of days!  All expertise out there on this topic?

    Any suggestions gratefully received

    ~ ~ Gay

    Have you looked at TableCleaner of Rick Quatro, at http://www.frameexpert.com/plugins/tablecleaner/index.htm

    As you found, the problem with the MIF - Bop tables is that not all of the settings are stored in the instance of table, so it can be difficult to make sure that the settings you are looking at other areas are indeed affecting the table 'target' other places. Keeping the table identification numbers straight is the key

    MIFBrowser is an essential element (it works perfectly with FM9 MIF):

    MIFBrowser Wideman

  • When I print a table (multiple pages) the text box under the table seems to be moving under the table and prints with the table of this overlap. My only solution is to push the text box further down the page before printing... Any advice?

    Im having problems shaped a text box so that my table does not print right on top of it. I want it inside of my table (it's 'tems and conditions' budget)

    Any advice would be great.

    I face the same problem as well. Would like to know if there is a better way to get the text box to move with the table instead of the effect that overlap. Have to manually adjust the layout, whenever I want to get a reasonable print of a document (or export it to PDF) seems counterintuitive, especially when it causes the document seem ill-disposed on screen.

    I am running version 3.6.2 of the numbers in the case where that matters.

  • The Stimulus of the Table load and run in the stream or target RT via Ethernet?

    I need to re-read a CAN track with the high fidelity and sequencing of rapid fire. The PC operating system is in the way too much to be able to control this tight of the moment. It must be managed within the target in real time.

    Do the stimulus of the table the stimulus replay load data to the RT, and then run the target of RT, or don't work space running on the PC the data flow to the RT for execution? Streaming would be subject to delays of PC operating system and network transport times.

    Thanks in advance for your help.

    Table of stimulus data gets loaded completely in memory on the target of RT and are replayed from there. PC or network delays has no effect on reading as soon as it starts.

  • How to rebuild the waveform with zero new and create histogram type of waveform?

    Hello everyone, I have an application where I need to rebuild a waveform using some amount of 'x' of the data samples. the conditions are:

    1. the new zero of the new waveform is peak value frm the old form of wave., allows to assign this value of y s.

    2. based on this peak value, I have to draw points of sampling (y - t) and (y + t)...

    the waveform above may look like a histogram, but isn't exactly a histogram... can anyone suggest a concept?

    I'm not able to take the time to "throw in a sample VI.

    But if you look at the help file get the subset of waveform, you will see that he has all the inputs you need.

    There is an enum constant that allows you to choose samples or time.  I would say that the samples since this is what will come from most of the table Max/Min detector or Peak live

    There is a sample start time.  Put in the value of your Ridge detector less t.

    There was a time.  Put in the value of t 2 times.

    If t is the time, you may need to convert to samples based on your sample rate.

  • Invert the table to the Add element to the front of the performance of Bay

    Hi all

    I read in a few places that reverse an array to add the element to the front of it will give the best performance since no new allocation of memory is necessary.

    I have 2 questions about this process:

    1. "reverse a table on requires pointers change.»

    Is that mean that a table in Labview is like a linked list? who has pointers that point to the next element.

    So when this inverse process occurs, the head of the linked list will be the last element of the array, and all links in the linked list will require a change.

    Step 1: table of moose with one extra space at the end

    Step 2: Matrix inverse

    Step 3: Add a new item at the end of the table opposite

    Step 4: Reverse again.

    2. the exercise of reverse Add then reverse is even worse in fact. Why is this?

    "Overhead" is the need for new buffer allocations, which indireclly affects runtime but also memory.

    Yes, often the paintings have an additional memory beyond the end of the table to avoid the resizing with each adding an item...

    Your FAQ quotes says nothing about any reversal trick. To do this, the elements of the array need reverse look up, then inserted using the space soft (if it exists!), then the need even to reverse ber alements in place. Seems like a lot of work to do over and over again. Yes, it might be slightly more efficient that have to be allocated to each prefix operation but we do not really know what the compiler does. Maybe if soft is available, it would be to move all the items up and insert the element first, make a new allowance that occasionally necessary. Who knows? I have the greatest respect for Darren, the author of the "source". Perhaps he can clarify what he writes.

    Benchmarking valid what is quite difficult.

    In all cases, you often know the final size, so it can be distributed in one shot and the items replaced with valid data that you will. It's always orders if magnutide more effective than any other solution.  If you need to grow an element of a table at a time, add at the end, never at the begginning.

  • insert into the table using the loop and permanently display

    Hello

    I am trying to insert some values of loop loop run into two tables and trying to draw using Graph XY. I need values Joanie be inserted one by one in each iteration. But at the end of the iteration in the table, I get only last value... can someone help me?

    Hello Manu,

    use a shift register to store each table. BuildArray allows to add/Add (not Insert!) of new values in the table.

    Then you need not use an ExpressVI to create the chart, a knot simple bundle (as indicated in the context-sensitive help) is enough to create a field in a XY Chart...

    Example with a table:

    Keep in mind:

    It's not (memory/CPU time) effective to use for time of data acquisition time (giving rise to large Bay). Use different approaches then...

  • Construction in real time of the table and the data tracing

    Hello

    I have a project in which I am waiting for a message from the chain coming to my serial port that contains two parameters of a voltage sensor compared to the position

    I will then draw two parameters for a XY chart as they arrived at my port to build a chart that is continuously updated with all the points came to the COM port (all from the position of the reading pressure readings).

    I know that to draw the two parameters against each other that I must use the XY-graph and for this, I have to insert my data in the tables first and then give them to the chart.

    The problem is that the message of the series is not at fixed intervals (for example a message now comes, the other may be after 1 minute, then another after one half minute.. .and so on). and the chart should be updated with the points once they arrive (in addition to displaying the previous points too of course).

    I don't know where to start! can someone put me on a track for it?

    Note: I have no problem with the interpretation of the data series, at the end I will have two numeric values which I'll then draw against each other

    Thank you

    One thing that I had not noticed before on your VI is that you use the wrong function when generating data in your table.  You should use table to build.  No insertion in the table which is more intended for stuff that goes in the middle of a table.  And the way you use it, you insert in fact data at the beginning and not at the end.

    I don't know what you have tried and why you think that the circular buffer is not what you want to do.

    Take a look for a function called data queue Pt by Pt that effectively does what you want.

    I will attach a Subvi I used.   I changed it to something that I found.  I think I found somewhere in LabVIEW itself, or an example, maybe the forums, but I can't find the original source.  And I don't see in the comments of the VI. (If anyone knows, please comment.)

  • Build/update dynamically the table 3D

    Hi all

    I'm having a problem with the dynamic generation of a 3D of the following set of data table:

    x: {1,2,3,4,5}

    y: {1,2,3,4,5}

    Z_1: {1,2,3,4,5}

    Z_2: {1,2,3,4,5}

    Z_3: {1,2,3,4,5}

    Z_4: {1,2,3,4,5}

    Z_5: {1,2,3,4,5}

    where there is (5) Z amplitudes associated with each measurement location.  What I am able to statically (from the above values x and y tables 1 d and 2D table Z) is to create a 3D Board made up of x and is indexed intensity to the graphic format of the 2D tables.  Each page of the table corresponds to each of the 5 Z amplitudes measured at each location.  In the attached VI, the Array Build function works perfectly for the static case where the entire data is available.  I followed the example of a another discussion forum will be subject to the provisions of nest two loops construction 2D array in the inner loop and incrementing the pages on the outer loop. The static situation is resolved.

    However, my goal is to graphically present data he is taken, point by point, to the user.  The other attached VI simulates this scenario, incrementation of x and y positions based on the measure button.  Z matrix indicator shows that the 2D Array (each individual page) is in the proper format.  The construction of the 3D picture is dynamically where I'm having problems.  I tried to build table and replace a subset of table, but none of these functions to produce the desired result.

    In the case of building table, 3D table is correctly based on the first measure: for x = y = 1, 2D array page0 is set Z_1 in position (1,1), page1 has the Z_2 value in the position (1,1), page2 Z_3, etc..  However, on the second measure, as expected, the berries are concatenated page5 have Z_1 values in the (1,1) and (2,2) positions.  This result is properly formatted, however, should the counted array 3D page is limited to 5 (page0, 1, 2, 3, 4).  So ideally, page5 should in this case replace page0.  So build array results in the correct format but concatenation is not desirable.

    The subset of spare board was made with the index of the page (outside of the loop) number to specify the subset of the 3D Board needs to be replaced.  The result was an empty 3D array.

    Thank you any help to solve this problem.

    kmsk wrote:

    Any suggestions on how to handle filling out table 3D of unknown size?

    If the size of the final table has a reasonable upper limit, you can initialize an array of slightly oversized, then keep using the subset of the table replace. It will be much faster and more effective memory than gradually more and more large networks.

    When the purchase is made, you can cut to the final size.

    Aircraft add to a table 3D using 'insert into array' or 'Build array' (favorite?), cause memory frequent shifts and might slow down your code by orders of magnitude in casing of excessive fragmentation of memory.

Maybe you are looking for

  • suddenly stops when the external usb hub is attached

    My imac 27 inches 5 k 2015 suddenly stops when an external USB hub is attached supposedly designed specifically for the mac. (Cutting) The mac does not start I have to unplug it and reconnect to restart. I tried different hubs of this manufacturer an

  • HP C5280 has an ink cartridge error and says refer to printer documentation.

    My HP C5280 printer just printing to quit smoking and the above error message.  I have always used HP cartridges.  Black is 74XL with expiration 2014-01-14, and the color is a 75XL expires 31/05/2012. Is the problem because the color cartridge is exp

  • Nothing in the System 32

    I don't have anything in the c:window / system32 folder. When I open the file it is completely empty. Is this a problem?

  • Installation of Windows Mail after system recovery

    Hello. I need help to set up Windows Mail after a system recovery. I have Vista Home premium. My ISP is Comcast, so I have a Comcast email address. I did a full backup on an external HD before the resumption. I have not used Windows Mail since Jan. 2

  • Rejection of the App World App update

    I get the "Bundle file was rejected. Package ID is required for all .bar file. If this is an upgrade, ID of Package must match ID of Package in the bundle of original file. » error when I try to update my BB10 App World app. The Package ID is the sam