Engage in time

Hi all

I have the box class:

public class Area implements Persistable{    // #region Fields

    private int mCountryId;

    private int mCode;

    private int mLineType;

    // #endregion

    // #region Constructors

    public Area( int countryId, int areaCode, int areaLineType )    {        mCountryId = countryId;        mCode = areaCode;        mLineType = areaLineType;    }}

and collection:

public class Areas extends BaseCollection implements Persistable{    // #region Constructors

    public Areas( int size )    {        super( size );    }

    // #endregion

    // #region Public Methods

    public void add( Area area )    {        Items.put( area.getCode(), area );    }}

BaseCollection:

public abstract class BaseCollection implements Collection, Persistable{    // #region Fields

    protected IntHashtable Items;

    // #endregion

    // #region Constructors

    public BaseCollection()    {        Items = new IntHashtable();    }

    public BaseCollection( int size )    {        Items = new IntHashtable( size );    }}

Collection contains 17000 related positions.

Time of the validation of this collection takes ~ 50 seconds on 9000 "BOLD".

How can I increase performance?

Thank you

Peter, you're right. This circumstance is took place only once, when I try to load and validate data.

I want to clarify if this validation takes so long.

Simon, thanks for the link. Grouping is a good idea. More my data should be read-only and requires separate only in special cases.

Thanks for all replies.

Tags: BlackBerry Developers

Similar Questions

  • External power supply

    If the "rocket" is in the car, connected to the USB charger, it lights when the ignition key is turned, it will turn off automatically when the car is off trurned or will it continue to play until the battery dies?

    It will only turn off if you have your engaged sleep timer option.

  • I use my MacBook Air as a desktop computer. Should I leave the charger plugged all the time or should I drain the battery and then recharge? What is the best for the battery?

    I use my MacBook Air as a desktop computer. Should I leave the charger plugged all the time or should I drain the battery and then recharge? What is the best for the battery?

    Keep the computer plugged in whenever possible.

    If you keep the computer always connected, make sure that at least twice a month

    Run it on battery until battery charge level falls to about 40-50%.

    Please don't completely discharge the battery. Discharge the battery completely will reduce wear and tear on the battery.

    For more information:

    Section: To optimize the battery life

    http://support.Apple.com/en-us/HT204054

    Citing at the bottom of the linked article.

    "The question is often asked:" should I disconnect my laptop from the mains when not in service? Under normal circumstances it should not be necessary because as soon as the lithium-ion battery is full, a properly functioning charger will stop the load and load the pad will only engage when the battery voltage drops to a low level. Most of the users do not remove AC power, and this practice is safe. »

    http://BatteryUniversity.com/learn/article/bu_808c_what_the_user_can_do

  • number constantly engaged online

    My online number is constantly engaged, he was to live for 12 hours now... do I want a refund... Any ideas what's happening?

    nextofkin11 wrote:
    My online number is constantly engaged, he was to live for 12 hours now... do I want a refund... Any ideas what's happening?

    Hello

    If your online # indicates either a busy or fast busy signal first check that your privacy settings are set on "allow calls from anyone". ".

    Can change to "allow only people from my contact list SkypeIn calls.
    Save and wait for 5 minutes.
    Sign out of your Skype account and reconnect.
    Change the settings back to "allow calls from anyone".
    Save and wait for 5 minutes.
    Log in to your Skype account and reconnect again.

    TIME ZONE - US EAST. LOCATION - PHILADELPHIA, PA, USA.

    I recommend that you always run the latest version of Skype: Windows & Mac

    If my advice helped to solve your problem, please mark it as a solution to help others.
    Please note that I usually do not respond to unsolicited private Messages. Thank you.

  • How can I stop CHKDSK to start each time that I boot?

    Under XP, SP3.

    I tried a fix and received a message that said it was only the relelvant to SP2 or an earlier version.

    CHKDSK runs when you restart either because you have scheduled to run at the next reboot or because your hard drive has been marked "dirty".

    Maybe engaged Microsoft Support Engineer "experts" don't know that you don't have to change the registry to remove a regular chkdsk pending.

    To delete all waiting for the command chkdsk scheduled, click on start, run and enter in the box:

    chkntfs /d

    Click OK and you will see all the messages, but which erases all orders pending regular chkdsk.

    XP will automatically check the "dirty bit" on all your volumes when it restarts.  If XP detects a volume that has been marked "dirty", it will run a chkdsk with correction of errors on the volume afflicted to try to clear the dirty bit and you will see a message indicating whether to start XP.

    A volume could be marked 'dirty' after something like a cut of current, power failure, aborted restart or an abnormal termination.  One of these events?

    You can query the dirty bit on a volume from the command prompt window.

    Click Start, run and enter in the box:

    cmd

    Click OK to open the command prompt window.

    For example, to query the bit of impurity on drive C, type:

    fsutil dirty query C:

    The sample output:
    Volume c is dirty
    Volume C: is dirty

    Is the volume of your sale or it is not dirty?

    The only thing that can clear the dirty bit is a success running chkdsk with error correction, sometimes you need to run it more than once, and sometimes that does not work and you will need see if running chkdsk with the XP Recovery Console error correction can clear the dirty bit.

    If you want to do this, we need to learn more about your system:

    Unfortunately, MS Answers forums does not prompt for any information system when a new question is asked, so we know almost nothing about your system.

    Not knowing the basic information a problem prolongs the frustration and the agony of these issues.

    Please MS Answers, continue to make solving simple problems as frustrating and a lot of time as possible.

    Provide information on your system, the better you can:

    What is your system brand and model?

    What is your Version of XP and the Service Pack?

    Your system's disks IDE or SATA drives?

    Describe your current antivirus and software anti malware situation: McAfee, Symantec, Norton, Spybot, AVG, Avira!, MSE, Panda, Trend Micro, CA, Defender, ZoneAlarm, PC Tools, Comodo, etc..

    The question was preceded by a loss of power, aborted reboot or abnormal termination?  (this includes the plug pulling, buttons power, remove the battery, etc.)

    The afflicted system has a working CD/DVD (internal or external) drive?

    You have a genuine XP installation CD bootable, which is the same Service as your installed Service Pack (this is not the same as any recovery CD provided with your system)?

    If the system works, what do you think might have changed since the last time it did not work properly?

  • At the launch of Warcraft III I get "cannot engage the directx '.

    at the launch of warcraft III using windows 7 Professional (64 bit), I get message "cannot engage the directx '. I reinstalled directx 11 and my video drivers without success.  I also tried to reinstall warcraft III.  This game has launched and has worked well for more than two months and then started to do this.  In a first time, if I restarted my computer it would start the game, but now it does not work.  What can I do?

    Obviously with the game running properly for a while, it is compatible with Win7.
    The game is fully patched?
    You have all the updates of Windows Installer? KB976264 is an important
    Update for older games.

    If the problem is actually a Direct X issue then the files that uses the game can somehow are damaged. In this case use Web Direct X Setup will fix the problem not as the Web Installer does not overwrite the DX files. It only installs files DX "missing."
    Try the redistributable of Direct X Installer, as it will overwrite the original files-
    Download details - Microsoft Download Center - DirectX Redist (June 2010)

    If you have other games that run properly then try reinstalling the game.  You can save your backups to be used after the relocation.
    If you don't have any other games using a PC with a graphics card, it may be worth re - a corner of your graphics card.
    Feeding offshore and disconnected (wait for the LED on the motherboard turns off, or wait more than 30 seconds if there is no LED) disconnect the cable from the monitor and remove the card from its location (do not handle map of the Strip).
    Clean the crack with a small clean brush and hand over the card.

    Without all the above, you can test the card in another machine, or another card in your machine.

    .

  • BEFORE the UPDATE of relaxation with time stamp does not work as expected

    We have a scenario where I check update operations on a table.

    I created a before update TRIGGER, so that every time he goes an update on the main table statement, one before the image of the lines is captured in the table of audit with timestamp.

    Since it is before updating, ideally the audit table timestamp (TRG_INS_TMST) should be less main table timestamp (IBMSNAP_LOGMARKER) VALUE, I mean TRIGGER should happen before the update.

    (I could understand in a way that the UPDATE statement is formulated with SYSTIMESTAMP earlier before the TRIGGER is evaluated and so UPDATE is to have a time stamp prior to TRIGGER, but this isn't what we wanted. We want PRIOR update)

    'Table' IBM_SNAPOPERATION IBM_SNAPLOGMARKER            
    ---- ----------------- -------------------------------
    T1   U                 13-OCT-15 03.07.01.775236 AM   <<---------- This is the main table, This should have the latest timestamp
    T2   I                 13-OCT-15 03.07.01.775953 AM
    

    Here is my test case.

    DELETE FROM TEST_TRIGGER_1;
    
    DELETE FROM TEST_TRIGGER_2;
    
    SELECT 'T1', ibm_snapoperation, ibm_snaplogmarker FROM TEST_TRIGGER_1
    UNION
    SELECT 'T2', ibm_snapoperation, TRG_INS_TMST FROM TEST_TRIGGER_2;
    
    INSERT INTO TEST_TRIGGER_1 (ID,ibm_snapoperation, ibm_snaplogmarker)
         VALUES (1, 'I', SYSTIMESTAMP);
    
    COMMIT;
    
    SELECT 'T1', ibm_snapoperation, ibm_snaplogmarker FROM TEST_TRIGGER_1
    UNION
    SELECT 'T2', ibm_snapoperation, TRG_INS_TMST FROM TEST_TRIGGER_2;
    
    UPDATE TEST_TRIGGER_1
       SET IBM_SNAPOPERATION = 'U', ibm_snaplogmarker = SYSTIMESTAMP;
    
    COMMIT;
    
    SELECT 'T1', ibm_snapoperation, ibm_snaplogmarker FROM TEST_TRIGGER_1
    UNION
    SELECT 'T2', ibm_snapoperation, TRG_INS_TMST FROM TEST_TRIGGER_2;
    

    Def trigger:

    CREATE OR REPLACE TRIGGER etl_dbo.TEST_TRIGGER_1_TRG BEFORE UPDATE OF IBM_SNAPOPERATION
    ON TEST_TRIGGER_1 REFERENCING OLD AS OLD NEW AS NEW
    FOR EACH ROW
    WHEN (
    NEW.IBM_SNAPOPERATION= 'U'
          )
    DECLARE
    V_SQLCODE  VARCHAR2(3000);
    --PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    INSERT INTO etl_dbo.TEST_TRIGGER_2
    (ID,
    IBM_SNAPOPERATION,
    IBM_SNAPLOGMARKER,
    TRG_INS_TMST
    )
    VALUES (:OLD.ID,:OLD.IBM_SNAPOPERATION,:OLD.IBM_SNAPLOGMARKER,SYSTIMESTAMP)
    ;
    --COMMIT;
    END;
    /
    

    Output is something like this

    1 row deleted.
    1 row deleted.
    no rows selected.
    1 row created.
    Commit complete.
    
    'T1' IBM_SNAPOPERATION IBM_SNAPLOGMARKER            
    ---- ----------------- -------------------------------
    T1   I                 13-OCT-15 03.07.00.927546 AM 
    1 row selected.
    1 row updated.
    Commit complete.
    
    'T1' IBM_SNAPOPERATION IBM_SNAPLOGMARKER            
    ---- ----------------- -------------------------------
    T1   U                 13-OCT-15 03.07.01.775236 AM   <<---------- This is the main table, This should have the latest timestamp
    T2   I                 13-OCT-15 03.07.01.775953 AM 
    
    2 rows selected.
    

    But for some reason, even after the creation of the 'AFTER' trigger for update, it works as expected. Sense - the main table is not having the last timestamp given

    It's OKAY - I told you in my reply earlier. Reread my answer.

    could understand somehow that the UPDATE statement is made with earlier

    SYSTIMESTAMP until the TRIGGER is assessed and updated so is to have

    time stamp prior to the trigger, but this isn't what we wanted. We want to

    BEFORE the update)

    As I told you before that your UPDATE statement occurs BEFORE the trigger is activated.

    Despite what the other speakers have said, it makes NO DIFFERENCE if you use a BEFORE UPDATE or an AFTER UPDATE trigger. Your UPDATE statement runs ALWAYS BEFORE the trigger.

    HE has TO - it's your update processing statement that causes the trigger to fire.

    Your update statement includes SYSTIMESTAMP. If during the processing of your return to update the value of SYSTIMESTAMP "at this exact time" is captured.

    Then your trigger is activated and starts to run. ANY reference to SYSTIMESTAMP that you use in your trigger cannot be earlier than the value of until the trigger was executed. It's IMPOSSIBLE.

    The trigger can use the SAME value by referencing: NEW and the column name you store the value. Or the trigger can get its own value that your code is doing.

    But the SYSTIMESTAMP value in the trigger will NEVER earlier than the value in your query.

    And none of these values can actually be used to tell when the changes are really ENGAGED since the trigger does not work and CAN NOT, to know when, or if, a validation occurs.

    Reread my first answer - he explains all this.

  • Materialized refresh time

    Hi all

    We have a view, materialized in prod

    We use a toad,

    I want to know what time interval internal the materialized view is refreshed.

    View MaterilizedSchemaUpdateLastRefreshR type
    xxxx_MVWXXXXNO.09/07/2015-12:33:42 AMALL THE

    Thank you

    There are three mode of MV refresh REQUEST, COMMIT and NEVER.

    APPLICATION - this is when the user uses the oracle supplied as DBMS_MVIEW to manually refresh the MV. When recharge them the MV is totally up to the user.

    VALIDATION - this is the operation on the base table is engaged.

    NEVER - MV is not refreshed

    So when you say INTERVAL I guess that you have a scheduled job to update the MV which means the MV is defined as REFRESH on DEMAND. Therefore focus on the definition of WORK namely the refresh interval.

  • Re-engagement campaign, triggered by the individual contact inactivity

    Hello

    I'm working on implementing a campaign simple renewal of commitment, and I would for members to add to the campaign as soon as they fall to a certain level of commitment, that is to say after that that they have not opened an email in the last 2 months. I want it to be current and the campaign that will be triggered based on the behavior of the individual contact.


    Is it possible to do this in the Web of campaign? (and not as a program?)


    I came across this post in Topliners which seems appropriate for this situation.

    Save your hours back. Feed: Re-engaging inactive campaign


    The part that is said in this post that interests me the most is this part, but I can't figure out how to make a segment in this way?

    Include a Auto campaign feeder using your 'Inactive Contacts' filter

    How do you advise me what to do for this?

    Which would be pretty simple, all you need to do is to create a segment of all contacts that have not opened and the e-mail in the last x months and use this as the segment campaign backdrop. Make sure that when you add what you select to add members on a regular basis rather than only once when you turn on the campaign.

    Double just check your times, 2 months, it is quite a short delay when watching non - open, how much time would you average contact by email during this period of 2 months?

    Liam

  • Engage slow Sendout?

    I noticed after the recent release that Eloqua Engage takes a long time to send an email. For example, test - I sent an email to myself through to commit and it took up to 2 hours before I received it in my Inbox.

    Everyone knows the same problem?

    Thank you
    Eva

    Hi Eva,

    I saw that as well when I was testing my email commit.

    Sincerely,

    Anita

  • Crazy rendering for the color correction time

    I gave a quick clip h.264 with the color corrector.  The clip is only a minute long, but the rendering time is more than 15 minutes?   Is this normal.  Final cut this would make about a minute or 2.  The file is a h.264 from 1920 x 1080 to 23.976.

    Appreciate any idea that can be offered.

    Not normal. You will need to provide an amount exhausting details about your situation and specific configuration.

    After my experience - if you have an approved graphics card and are able to engage GPU in the mercury playback engine you should decimate FCP rendering times.

  • Is there a way lot of link media in prelude instead of a file at a time?

    I work on a project file and the media on an external drive.

    I copied the structure of the whole of the folder/file to another drive (to test how it would work because I will not be editing the final draft). Prelude opens the project file, but it asks me to engage the media. Is this possible in the form of lots? It seems I have to bind a file at a time.

    Thank you!

    It did not work.

    I had an online chat with the customer support. The conclusion was that of prelude does lot link media.

    Effectively, this means that the files/folders can be shared among a group of editors working on a single project with Prelude. My current project, for example, has more than 200 media inside files. I have not the time to lose to link each file individually.

    It is a design flaw in the prelude. Batch linking is needed to make this useful product for a group of editors. As it is, the prelude seems to work very well for a journalist working alone with a computer and a disk.

    Now, I'm worried how Prelude will work with the Prime Minister. The editor works on the current project will use a different machine after having finished a rough cut with Prelude. Is it we have to connect each individual file to make the first prelude editing work?

    Thank you for your help. Adobe needs to add a lot linking functionality to make this useful product.

  • Y at - it a builder of virtual furniture in real time?

    MELUKA | The New Zealand made furniture design and storage for kids, bedrooms and living room

    Generator of virtual furniture in real time: possibility of "drag and drop" intuitive user interface on the site of Meluka for SIDEboys, TVboys and modular shelving. In the words of the customer:

    "We need to engage with someone who can provide a"plug-in"to the Meluka site which allows the user to"build a cabinet". Basically, we want the user to be able to choose a carcass size then fill each "Bay" of the carcass with the appropriate function (for example, drawers, cabinets, sliding doors, etc.).  I always imagined it would be with a "drag and drop" function It could also be added to shelving modular product range. »

    Because you need pictures, often of 360% pan view of them as well for all products - for the most part, it is a custom job. A you connected the unit needs to work for example. Some Flash, some do it html 5. Because everyone has different needs and products different requirements, I can't say I saw just a plugin that will offer it and just twist.

  • Merge on 64-bit Macbook Pro material offer real-time similar access to Hyper-V?

    I am a .NET software engineer, and I love Mac.

    In the PC world, there is a role in Windows Server 2008, called Hypter-V, which allows machines to virtualization (VMWare and virtual server products Microsoft) to access the hardware (CPU, RAM, etc.) in native mode, running at a speed in real time.

    Merger offer that a Macbook Pro to 64 - bit? If not, is it current?

    TIA

    In general, CPL3 code will operate at speed, as long as no defects are engaged.  This is true whether you use VT - x or binary translation.  There are exceptions to this, such as the CPUID instruction, which is required for VT - x intercept.  The CPUID instruction will run at native speed under direct execution with binary translation, but it will run significantly more slowly on VT - x.

    Performs a system call, however, works in native VT - x, but much slower speed in the direct execution with binary translation.

    Of course, any operation involving virtualized devices rather than the much slower than native physical peripheral tracks, given that the devices should be virtualized.

  • Commit = n at time of importation

    Hi all

    I want to know if we use commit = y at time of importation, although this will improve the spedd of import, but I have a queation when all the data is committed.

    Is it true that the data get commited when redo correct filled.please file bothers me if I'm wong.
    Oracle 9.2

    These documentation says:

    [Import COMMIT | http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch02.htm]

    Default: n

    Specifies whether importation should commit after each table to insert. By default, Import is committed only after the loading of each table and import performs a cancellation when a mistake occurs, before continuing with the next object.

    If a table has attributes or nested table columns, the contents of the nested tables is imported as separate tables. Therefore, the content of the nested tables is still engaged in a separate transaction from the transaction used to commit the outer table.

    COMMIT = n, a table is partitioned and each partition and subpartition in the export file are imported into a separate transaction.

    Specification of COMMIT = there prevents rollback segments to grow excessively large and improves the performance of imports. Specification of COMMIT = there is recommended if the table has a unique constraint. If the import is restarted, all lines that have already been imported are dismissed with a recoverable error.

    If a table does not have a uniqueness constraint, import may produce duplicate rows when you re-import the data.

    For tables containing LONG, LOB, REF, BFILE, ROWID columns, or UROWID, table inserts are not made. COMMIT = y, import commits these tables after each line. >

    HTH!

Maybe you are looking for