Networked Database speed issue...

I apologize... I am kind of new to programming and have a limited scope of understanding when it comes to databases and sql queries.  I was given the task of creating an application to perform a sorting algorithm and implemented it using LabVIEW 2013, the database toolkit, and a MS Access 2007 database.  The application I wrote worked great when it was first deployed and now that it has been operational for about 2 months, it has slowed significantly. I did some testing and I think I have isolated the latency to network communication issues.  
I believe it is network speed/traffic related because I copied the database locally and sorting was only about 2s - the networked copy takes about 14s!!! Also, the number of users had no impact on this number either - I created a copy of the database, renamed it, saved it to the same folder, pointed my application to that file instead and it was still 14s...  The only noticeable improvement was using a local copy, which will not work for this scenario.  
I spoke to a few people about it and someone suggested changing the cursor location from server based to client based (http://msdn.microsoft.com/en-us/library/windows/desktop/ms676564(v=vs.85).aspx).  Only thing is, I cannot figure out which LabVIEW is using or how to change it... Is it changeable?  If not, do you have any other suggestions for speeding it up?  It is unlikely I will get much support from our IT department, so any improvement suggestions will have to be recommendations for change to my application.

I suppose I should have been more clear when I said sort...lol.  The application is used to find a PO for a particular device (sorting to a PO).  There is only one sort operation (a->z) performed in any of my sql queries (see below)
I was concerned about using the database as well - mostly because I'm not as experienced using them...  The original implementation of the application used text files and flags to prevent data collisions, but we have about 10 people sorting at one time and it was creating a huge lag time.
The network location of the database (we believe) is probably what is causing most of the issue.  Our IT dept keeps things very locked down and there weren't many choices for implementation methods.  I was forced to use a shared folder on the network to store the database and this shared folder is accessible to everyone in our facility.  Be believe the general traffic to this server is probably most of the issue we are having.  
when the version 2 sort tool was deployed (the one using the database instead of text files) it took just a few seconds to return a result - on the order of 3-5s.  There are now over 150,000 entries in the database, so I'm sure that too is contributing to the lag.  
The database has several tables:
(1) Log Table: used strictly for logging the device sort data,
(2) Liquidation Table: lists all of the possible sort locations and the device requirements for each PO,
(3) Activity Log - used for capturing devices which shouldn't be sorted or other device condition based exceptions,  
(4) Allocation table - for each model it lists whether the device should be sorted to a PO based on the priority of the PO or an allocation percentage, and
(5) Requirements table - only 3 entries.  Used to control specific behavior of the sort.
I have several SQL queries in the code that hit this database...  
1. Check the requirements table.  The flags reside in the table to (1) stop the sorters from being able to sort devices temporarily and (2) a flag to force all devices to be cleared and/or graded before they can be sorted.  
SELECT Requirements.Requirement, Requirements.Enable FROM Requirements
WHERE (((Requirements.[Start])<Now()) AND ((Requirements.[End])>Now()));
2. Check the log to see if the device was already sorted - if it is, it flags that log entry so it is not counted against a PO and can be resorted.  
SELECT ID  FROM LQD_Log
WHERE PO_ID > -2 AND ITEM_ID ='[ITEM ID]'
If not null, a case statement updates the PO_ID for that log entry to a value that will not count against any open POs.  
3. The next query is a little more complicated.  Depending on the device condition, several case statements build the SQL query string to find a PO the device can be sorted to.  Since there could be multiple POs returned, I have it return the POs (at most 5 or so) sorted by priority.  (there are 13 elements for each PO returned).
4.  The next query checks the allocation table to see if the that model is to be sorted based on priority of the PO or by an allocation percentage.  
SELECT Percent  FROM Allocation_Table
WHERE CNN ='[COLOR NEUTRAL NAME OF DEVICE]'
A PO is selected in my LabVIEW code based on the POs returned and the allocation method. 
The PO (Sort location) is displayed to the user.  they scan the sort location and then I write the information to the log in the database - Pertinent device characteristics related to the sort decision, PO Information, user information and scanned location (21 elements).  
There is very little which can be done about the location of the file... it has to be in a shared location, and it has to be able to support multiple user access.  One of the programmers here recommended using an Access database for this reason and many others.  I could possibly lock it down with flags again, but I'm afraid that would only contribute to the problem - I did test a copy of the database to the same network location and I saw the same types of delays, so I really do not believe it is related to multiple users accessing the file. 

Similar Messages

  • Speed Issues Fixed In 9.1.2

    Lost all my thumbnails updating to iPhoto 9.1.2 but rebuilding the thumbnail database solved the problem. Best of all, the speed issues are finally gone in iPhoto 9.1.2. Opening the application is way faster again (2 seconds as opposed to 12 seconds or more). Scrolling is way faster again. Can't believe it took this long for Apple to fix this mess. Nevertheless, iPhoto '11 feels like iPhoto '09 once again. Thanks Apple.

    Lost all my thumbnails updating to iPhoto 9.1.2 but rebuilding the thumbnail database solved the problem. Best of all, the speed issues are finally gone in iPhoto 9.1.2. Opening the application is way faster again (2 seconds as opposed to 12 seconds or more). Scrolling is way faster again. Can't believe it took this long for Apple to fix this mess. Nevertheless, iPhoto '11 feels like iPhoto '09 once again. Thanks Apple.

  • Home Hub 3 Speed Issue

    Some 6 weeks ago I had an issue with losing my internet connection completly, and eventually after a long session with the help desk I magaged to reconnect using the direct port on the main phone socket. However since then I have had a speed issue and Ive been only getting speeds in the order of 2.3Mb.
    However running the BT speed test tells me that the connection to my Home Hub 3 is running at 8.13Mb, but the connection to my computer is running at 2.18Mb.
    I have tried every thing  I can think of. Followed all the advice to improve the connection but nothing works. Reseting the Home Hub, reseting the factory defaults. I've closed down every program running in the background, disconnected the rest of the hardwired network, fitted a new shorter cat 6 cable. All to no avail. The speed still stays firmly at 2.18 to 2.15. down and 0.37 up.
    Could their be a fault with my Home Hub?
    Thaks for any advice.
    Roy
    Solved!
    Go to Solution.

    23:38:00, 29 Jul.
    ( 5932.320000) CWMP: Session start now. Event code(s): '4 VALUE CHANGE'
    23:37:29, 29 Jul.
    ( 5901.890000) CWMP: session closed due to error: No response
    23:37:28, 29 Jul.
    ( 5900.920000) CWMP: Server URL: https://pbthdm.bt.mo; Connecting as user: ACS username
    23:37:28, 29 Jul.
    ( 5900.910000) CWMP: Session start now. Event code(s): '4 VALUE CHANGE'
    23:37:28, 29 Jul.
    ( 5900.480000) CWMP: Initializing transaction for event code 4 VALUE CHANGE
    23:37:24, 29 Jul.
    ( 5896.840000) DSL is down after 2 minutes uptime
    23:37:24, 29 Jul.
    ( 5896.840000) ETHoA is down after 2 minutes uptime
    23:37:24, 29 Jul.
    ( 5896.200000) PPPoA is down after 2 minutes uptime [Waiting for Underlying Connection (WAN DSL - Up)]
    23:37:20, 29 Jul.
    ( 5892.820000) PPP LCP Send Termination Request [User request]
    23:36:35, 29 Jul.
    ( 5847.820000) CWMP: session completed successfully
    23:36:34, 29 Jul.
    ( 5846.940000) CWMP: HTTP authentication success from https://pbthdm.bt.mo
    23:36:32, 29 Jul.
    IN: BLOCK [16] Remote administration (TCP [116.10.191.167]:6000->[81.154.29.9]:22 on ppp0)
    23:36:32, 29 Jul.
    ( 5844.670000) CWMP: Server URL: https://pbthdm.bt.mo; Connecting as user: ACS username
    23:36:32, 29 Jul.
    ( 5844.660000) CWMP: Session start now. Event code(s): '6 CONNECTION REQUEST,4 VALUE CHANGE'
    23:36:32, 29 Jul.
    ( 5844.050000) CWMP: Initializing transaction for event code 6 CONNECTION REQUEST
    23:35:08, 29 Jul.
    ( 5760.150000) CWMP: session completed successfully
    23:35:07, 29 Jul.
    ( 5759.850000) CWMP: HTTP authentication success from https://pbthdm.bt.mo
    23:34:55, 29 Jul.
    ( 5746.980000) CWMP: Server URL: https://pbthdm.bt.mo; Connecting as user: ACS username
    23:34:55, 29 Jul.
    ( 5746.970000) CWMP: Session start now. Event code(s): '4 VALUE CHANGE'
    23:34:48, 29 Jul.
    ( 5740.780000) PPP IPCP Receive Configuration ACK
    23:34:48, 29 Jul.
    ( 5740.580000) PPP IPCP Send Configuration ACK
    23:34:48, 29 Jul.
    ( 5740.580000) PPP IPCP Receive Configuration Request
    23:34:48, 29 Jul.
    ( 5740.290000) PPP IPCP Send Configuration Request
    23:34:48, 29 Jul.
    ( 5740.290000) PPP IPCP Receive Configuration NAK
    23:34:47, 29 Jul.
    ( 5739.870000) PPP IPCP Send Configuration ACK
    23:34:47, 29 Jul.
    ( 5739.870000) PPP IPCP Receive Configuration Request
    23:34:47, 29 Jul.
    ( 5738.990000) PPP IPCP Send Configuration ACK
    23:34:47, 29 Jul.
    ( 5738.990000) PPP IPCP Receive Configuration Request
    23:34:45, 29 Jul.
    ( 5737.420000) PPP IPCP Send Configuration Request
    23:34:45, 29 Jul.
    ( 5737.410000) WAN operating mode is DSL
    23:34:45, 29 Jul.
    ( 5737.410000) Last WAN operating mode was DSL
    23:34:43, 29 Jul.
    ( 5735.310000) PPPoA is up - VPI: 0, VCI:38
    23:34:43, 29 Jul.
    ( 5735.290000) CHAP authentication successful
    23:34:43, 29 Jul.
    ( 5735.260000) CHAP Receive Challenge
    23:34:43, 29 Jul.
    ( 5735.250000) Starting CHAP authentication with peer
    23:34:43, 29 Jul.
    ( 5735.250000) PPP LCP Receive Configuration ACK
    23:34:43, 29 Jul.
    ( 5735.240000) PPP LCP Send Configuration Request
    23:34:42, 29 Jul.
    ( 5734.110000) PPP LCP Send Configuration ACK
    23:34:42, 29 Jul.
    ( 5734.110000) PPP LCP Receive Configuration Request
    23:34:40, 29 Jul.
    ( 5732.210000) PPP LCP Send Configuration ACK
    23:34:40, 29 Jul.
    ( 5732.210000) PPP LCP Receive Configuration Request
    23:34:40, 29 Jul.
    ( 5732.090000) PPP LCP Send Configuration Request
    23:34:37, 29 Jul.
    ( 5729.230000) ETHoA is up - VPI: 0, VCI:35
    23:34:37, 29 Jul.
    ( 5729.230000) DSL is up
    23:34:36, 29 Jul.
    ( 5728.350000) DSL noise margin: 21.00 dB upstream, 10.90 dB downstream
    23:34:36, 29 Jul.
    ( 5728.280000) DSL line rate: 448 Kbps upstream, 8128 Kbps downstream
    23:34:12, 29 Jul.
    ( 5704.670000) CWMP: session closed due to error: No response
    23:34:12, 29 Jul.
    ( 5704.640000) CWMP: Server URL: https://pbthdm.bt.mo; Connecting as user: ACS username
    23:34:12, 29 Jul.
    ( 5704.630000) CWMP: Session start now. Event code(s): '4 VALUE CHANGE'
    23:33:42, 29 Jul.
    ( 5674.150000) CWMP: session closed due to error: No response
    23:33:41, 29 Jul.
    ( 5673.000000) CWMP: Server URL: https://pbthdm.bt.mo; Connecting as user: ACS username
    23:33:41, 29 Jul.
    ( 5672.990000) CWMP: Session start now. Event code(s): '4 VALUE CHANGE'
    23:33:40, 29 Jul.
    ( 5672.560000) CWMP: Initializing transaction for event code 4 VALUE CHANGE
    23:33:36, 29 Jul.
    ( 5668.110000) DSL is down after 92 minutes uptime
    23:33:36, 29 Jul.
    ( 5668.100000) ETHoA is down after 92 minutes uptime
    23:33:35, 29 Jul.
    ( 5667.670000) PPPoA is down after 92 minutes uptime [Waiting for Underlying Connection (WAN DSL - Up)]
    23:33:32, 29 Jul.
    ( 5664.200000) PPP LCP Send Termination Request [User request]
    23:29:51, 29 Jul.
    OUT: BLOCK [7] ICMP replay (ICMP type 3 code 1 81.153.31.203->69.171.248.65 on ppp0)
    23:28:50, 29 Jul.
    ( 5382.020000) CWMP: session completed successfully
    23:28:48, 29 Jul.
    ( 5380.950000) CWMP: HTTP authentication success from https://pbthdm.bt.mo
    23:28:46, 29 Jul.
    ( 5378.860000) CWMP: Server URL: https://pbthdm.bt.mo; Connecting as user: ACS username
    23:28:46, 29 Jul.
    ( 5378.850000) CWMP: Session start now. Event code(s): '6 CONNECTION REQUEST,4 VALUE CHANGE'
    23:28:46, 29 Jul.
    ( 5378.230000) CWMP: Initializing transaction for event code 6 CONNECTION REQUEST
    23:26:03, 29 Jul.
    ( 5215.090000) CWMP: session completed successfully
    23:26:02, 29 Jul.
    This is some of the event log.

  • VPN Speed Issue

    Hi all,
    I am having a VPN speed issue. When I am using the internet and not connected to the VPN, I experience speeds of 25mbps/25, which is what my contract with Verizon calls for. When I connect to the VPN with my laptop, speeds drop to about 3/2 mbps. (I am connected via Ethernet hardwire not wireless)
    I ran Ethernet wire to the Verizon box and then had Verizon activate. Unfortunately this did not solve my problem. Internet is fine until I connect to the VPN.
    I also was able to conduct a test: I connected wireless to an open local network while in the office and then to my work server via the VPN with no noticeable speed issues. This leads me to believe the issue lies with the Actiontec router issued from Verizon?
    I only work remotely 1x per week so have been hobbling along with this problem for the past 3 months since our switch from Comcast. (Speed was fine with Comcast ) It is painful as it causes a 5-10 second lag for each click when navigating folders on the remote server. This means it can take me 5 minutes to pull down one PDF file.
    Is there a suggested solution for this - should I buy another router?
    thanks,
    Steve

    No, usually, you dont have to wait. You do have to log into the router and go in and release the IP, but most of the time this is all you have to do.
    Once in a while it wont release properly, in which case you do have to wait a couple of hours. But most of the time it will release just fine.
    ====================================================================================
    Error exists between keyboard and chair.

  • Speed Issue in Report With 1130680 Records Returned

    Hi
    <b>Apologies to the mods if this is in the wrong section, it contains content related to Legacy SDKs (VB6/COM), newer .NET content as well as report design issue.</b>
    I'm using Windows XP SP3 with the database hosted on my machine, an [email protected] with 2GB DDR2 RAM. Neither the client's pc nor their server are as powerful as mine. (It sucks, I know.)
    A report has a speed issue for the end users. The query to the database (SQLS2008) takes 30 seconds and returns 1 130 680 records. And yes, this is the amount of records that need to be returned (the report is a Sales Details report for transactions from 2008/09/01 to 2009/03/31) Running the query through SQLSMS takes the same amount of time whether I execute the statement that the report sends or put the query into a stored procedure. The relevant indices are in place.
    Our application is written in VB6 and uses the CR9 unmanaged runtime. I've written a small little CR application in VS2008 to see if running the report through the CR.NET runtime would make it quicker. I built the .NET app in release mode (with optimization and no debug data) and ran the exe to do the speed tests. The times taken for the report to run:<ul>
    <li>VB6 app - 3:30s
    <li>.NET app - 4:30s
    <li>VS2008 IDE - 2:02s
    </ul>
    I have run the report three times for each app using my cellphone as a stopwatch and the times are reproducible to within two seconds.
    I accidentally ran the report in the VS2008 IDE and it took 2:02s to run. Thinking that the loading of the DLLs in .NET was part of the problem, I added code under a button on the form with the following code:
    CrystalReportsApplication1.Properties.Settings a = new CrystalReportsApplication1.Properties.Settings();
    Assembly aAss = Assembly.LoadFile(a.CR01Engine);
    Assembly bAss = Assembly.LoadFile(a.CR02EntFramework);
    Assembly cAss = Assembly.LoadFile(a.CR03EntInfoStore);
    Assembly dAss = Assembly.LoadFile(a.CR04ReportSource);
    Assembly eAss = Assembly.LoadFile(a.CR05Shared);
    Assembly fAss = Assembly.LoadFile(a.CR06WinForm);
    to preload the assemblies. Unfortunately it made virtually no difference to the running time of the report.
    Suggestion from The specified item was not found. on [this page|Speed issue - internal processing vs views;:
    8. For summaries, use conditional formulas instead of running totals when possible.
    I didn't know that, but we're doing that already.
    I even tried using ngen in a virtual machine for the .NET app, but the time was the same. And yes, I know that ngen is only supposed to aid startup times and that it is actually recommended to let the JIT optimize on the fly instead of ngen optimize beforehand. What really struck me was that even in a VM (using Virtual PC 2007) using 512MB of RAM and only a single core the time was the same.
    My questions:<ol>
    <li>I thought that VS2008 shipped with CR2008 Basic, but according the the references in my project it's CR10. Would the CR2008 runtimes improve the report speed?
    <li>Why do the CR10 .NET runtimes take longer to execute than the CR9 COM runtimes?
    <li>I really, really, really need the .NET runtime to outperform the COM runtimes as our purchase of CR2008 hinges on this. As you can probably guess, we're currently using ye olde CR9.2 from 2002.
    <li>Why oh why do the CR10 .NET runtimes take longer to execute than the CR9 COM runtimes?
    <li>The first level of grouping is a variable which changed the grouping depending on a parameter. I changed it to a field from one of the tables and the times for the apps are:
    <ul>
    <li>VB6 - 2:15s
    <li>.NET - 2:48s
    <li>CR9.2 IDE - 2:19s
    <li>VS2008 IDE - 2:34s
    </ul>I may or may not be able to push it out to the client like this, I don't know. Why did the VS2008 IDE take longer this time? All I did was change the grouping-on-parameter to ordinary grouping.
    <li>Why oh why oh WHY do the CR10 .NET runtimes take longer to execute than the CR9 COM runtimes? Are they just thunkers to the COM DLLs?
    <li>Why does the run in the VS2008 IDE (in debug mode BTW, not release mode) run quicker than both programs?
    <li><i>AndrewJ.requestACookie(Flavour.Strawberry, Flavour.Alternate.ChocChip, RequestMethod.Please); // Hey, it's 5:44PM and I want to go home for the long weekend! </i>
    </ol>
    Thank you and have a blessed Easter!
    Edited by: AndrewJ on Apr 14, 2009 10:04 AM. Changed the CPU, I was thinking of my CPU at home.

    Please re-post if this is still an issue to the .NET Development - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly.
    Bottom line is CR Basic is version 10.5. CR 2008 is 12.2.x.xxxx. Install CR 2008 SP 1 to get .NET support.
    And you can't compare COM to .NET, it's like comparing apples and oranges, both fruits but different flavors.

  • 30/30 UPLOAD SPEED ISSUE

    I am having upload speed issues.... I have spent over 3 hours with Verizon Tech on the phone/and or computer (optimizing, etc.), replaced the router twice; had two techs come out to the house to check the box and speed entering the house (everything checked out just fine)... it is very frustrating because I am unable to upload any pictures, etc. to any application or site (shutterfly, yahoo email, etc.) Verizon is baffled and can not figure the issue out, because the line coming into the house and the lines in the house test out fine. It is not my computer...cause they used there own outside on the line and could not upload.  I even had billing remove internet service from my package and reinstate to see if we could jolt a circuit from Verizon (on-site tech recommended) He thought it may be some sort of programming with my profile... Any help or ideas would be appreciated! What else can I do?  Should I replace the outside box anyway?  Here is what I am getting, although sometimes the upload speed says anywhere from  0.68-3.82Mb/s:
    Checking for Middleboxes . . . . . . . . . . . . . . . . . . Done
    SendBufferSize set to [261360]
    running 10s outbound test (client to server) . . . . . 3.82Mb/s
    running 10s inbound test (server to client) . . . . . . 41.81Mb/s
    Solved!
    Go to Solution.

    jbandtina1
    Is that on a hardwired connection with only the actiontec in the picture? 
    if so then yes - something is definetely going on,   if they haven't tried a new router then that is one step, possibly a bad Network terminal, or further up on their end like described to you by the tech.  

  • 2 problems with EA6300 both speed issue's

    I got my EA6300 for a while now, overall for what it is used its doing ok.
    Though recently i had to add a tv box to my network.
    Connecting it to the router would not work, since it did not get a IP.
    So i was forced to put a switch before the router.
    So the network cable with the internet signal on it is first connected to the switch to which the tv box is also connected.
    Then a cable supplying internet goes to the router, and another cable which is connected to my desktop pc.
    Both router and switch are all gigabit ports, so that is one thing to rule out.
    The PC is connected to the switch because if i connect it to the router then speed seems to be capped at 100mbit, while it should be capped at 1000mbit with the gigabit ports.
    The PC network is gigabit also, and with a 100mbit cap i cap my internet also since it is faster then that.
    So that is why i had to connect the PC to the switch.
    Could adding a 4 port gigabit switch make the router cap the amount of speed it lets through?
    Because this seems to have started when i added the switch, before that everything was fine.
    Then problem 2.
    To the router i got a external 2TB hard disk connected.
    For whatever reason i cannot get any faster transfer rate then 2mb/s when moving files from desktop to the HD.
    Most times it is just barely getting 1mb.
    This is over the regular windows network, maybe that is the main issue?
    Any help would be much appreciated.

    Sevy wrote:
    I managed to fix the speed issue from the router to the PC.
    Though still unsure why wired the transfer rate is so slow.
    From the drive to the desktop i get about 18mb/s which isn't to bad.
    But from the PC to the drive its now getting just below 10mb/s.
    Check if the slow wired transfer speed happens on all wired devices in the network. Upgrade the firmware of the router as well. 

  • Urgent help needed; Database shutdown issues.

    Urgent help needed; Database shutdown issues.
    Hi all,
    I am trying to shutdown my SAP database and am facing the issues below, can someone please suggest how I can go about resolving this issue and restart the database?
    SQL> shutdown immediate
    ORA-24324: service handle not initialized
    ORA-24323: value not allowed
    ORA-01089: immediate shutdown in progress - no operations are permitted
    SQL> shutdown abort
    ORA-01031: insufficient privileges
    Thanks and regards,
    Iqbal

    Hi,
    check SAP Note 700548 - FAQ: Oracle authorizations
    also check Note 834917 - Oracle Database 10g: New database role SAPCONN
    regards,
    kaushal

  • Speed Issues

    Greetings and Salutations,
    I'm having speed issues with my Adobe AIR application. From what I've read on the web, AIR is supposed to be fast at drawing graphics. I am writing an application which has multiple screens. On one of the screens I have a tab (SuperNavigator) which has a canvas on it. That canvas has a series of other canvases (built with a repeater) that have graphics in them. I am having speed issues when I have more than 50 of these children canvases. I've tried running it without the graphics (code below is without the graphics) to see how it performs. When I have 954 of these canvases being drawn it takes about 2.5 minutes to draw. This is unacceptable and I'm wondering if this is something I've induced or if AIR was never meant to handle such a large amount of canvases (actually this isn't a large amount, in a real world environment there could be a lot more). I've included relevant clips from the code. There are a couple empty boxes that in the real application will hold graphics.
    The class withing the Tab Navigator is a canvas.
    In the action Script (the setter line takes 2.5 minutes to get past) (it's binding to the repeater that seems to be my problem).
    [Bindable]  private
    private  var _assetList:Array;
    [Bindable]  
    public function get timelineAssetList():Array{ 
         return this._assetList;
    public function set timelineAssetList(ac:Array):void{ 
         this._assetList = ac;
    The MXML code that is being bound to:
     <mx:Canvas id="labelCanvas" left="0" right="0" top="0" height="65" verticalScrollPolicy="off" scroll="scrolling(event)">
          <mx:HBox horizontalGap="1" left="10" right="10" top="10">  
              <mx:Spacer width="2"/>  
                <mx:Canvas width="{getHeaderWidth()}" height="40" borderStyle="solid" borderColor="{StaticVariables.borderColor.getColorUint()}" horizontalCenter="0">
                <PastDataView:ColorBarScale id="scale" bottom="10"/>   
         </mx:Canvas>  
              <mx:Canvas width="20" height="40">  
                   <mx:Spacer width="20" />  
              </mx:Canvas>  
         </mx:HBox>  
    </mx:Canvas>
    <mx:Canvas id="assetCanvas" left="0" right="0" bottom="0" top="65" scroll="scrolling(event)">
         <mx:VBox y="10" right="16" left="10" verticalGap="0">  
              <mx:Repeater id="assetRepeater" dataProvider="{timelineAssetList}">  
                   <mx:HRule width="100%"/>
                   <PastDataView:ColorBarBar  id="barArray" width="100%" height="170" asset="{assetRepeater.currentItem}"/>  
              </mx:Repeater>
         </mx:VBox>  
    </mx:Canvas>
    The ColorBarBar consists of:
    <?xml version="1.0" encoding="utf-8"?><mx:Canvas  xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="300" xmlns:PastDataView="org.XXXXXX.CenterScreen.PastDataView.*" horizontalScrollPolicy="off" click="clicked()">
         [Bindable] 
         public static var _colorBarHeight:int = StaticVariables.colorBarHeight;
         [Bindable] 
         private var _asset:Object;
         [Bindable] 
         public function set asset(a:Object):void{ 
              this._asset = a;          getBackgroundColor();
         public function get asset():Object{ 
              return _asset;     }    
          private function getBackgroundColor():void { 
              var color:String = asset.color; 
              if (color == null) color = "Black"; 
              if( color.toLowerCase() == "blue" ) {
                   lblAssetTag.setStyle("color", 0x1674cc);               lblAsset.setStyle(
    "color", 0x1674cc);          }
    else if( color.toLowerCase() == "red" ) {
                   lblAssetTag.setStyle("color", 0xe35353);               lblAsset.setStyle(
    "color", 0xe35353);          }
    else if(color.toLowerCase() == "grey" || color.toLowerCase() == "gray") {               lblAssetTag.setStyle(
    "color", 0xe55555);               lblAsset.setStyle(
    "color", 0xe55555);          }
    else { // give it a default color                lblAssetTag.setStyle(
    "color", 0x000000);               lblAsset.setStyle(
    "color", 0x000000);          }
          private function calculateActivityRepeaterHeight():int{ 
              return this.height-50-_colorBarHeight;     }
          public function clicked():void{
              dispatchEvent(new SelectAssetEvent(this._asset, false, false, true));     }
         ]]>     </mx:Script>
           <mx:VBox left="0" top="0" right="0">
               <mx:Spacer height="1"/>
               <mx:HBox>
                    <mx:Spacer width="2"/>               <mx:Label id="lblAssetTag" text="{asset.type}: " fontWeight="bold" fontSize="12" doubleClickEnabled="true" doubleClick="titleClicked()"/>  id="lblAssetTag" text="{asset.type}: " fontWeight="bold" fontSize="12" doubleClickEnabled="true" doubleClick="titleClicked()"/> id="lblAssetTag" text="{asset.type}: " fontWeight="bold" fontSize="12" doubleClickEnabled="true" doubleClick="titleClicked()"/> 
                   <mx:Label id="lblAsset" text="{asset.name}" fontSize="12" doubleClickEnabled="true" doubleClick="titleClicked()"/>
                    <mx:Label id="lblAssetId" text="{'(' + asset.id + ')'}" fontSize="12" visible="{mx.core.Application.application.debugMode}"/>
               </mx:HBox>
              <mx:HBox horizontalGap="1">
                    <mx:Spacer width="2"/>
                    <mx:Spacer width="10" />
                    <mx:VBox  width="100%">                    <mx:VBox>
                        </mx:VBox>   
                        <mx:VBox  id="displays" verticalScrollPolicy="auto" height="{calculateActivityRepeaterHeight()}" horizontalScrollPolicy="off">
                        </mx:VBox>   
                   </mx:VBox>   
              </mx:HBox>
              <mx:Spacer height="2"/>
          </mx:VBox></mx:Canvas>
    I would appreciate any thoughts or feedback you could provide.
    ~martin

    The Canvas is a very heavy object that has lots of overhead.  Even worse is the VBox object that is in there multiple times. 
    What exactally are you trying to accomplish?  Just looking over the code, it seems that the same could be done directly with the Graphics API, at a much faster rate.
    For each of the VBoxes and Canvases you have, the entire size of each child and parent need to be re-evalulated each time you add or change something.  This is a HUGE overhead, and probably why the app is running so slow.  You may need to convert this app to use simpler objects (UIComponent or something lower-level like that) to get any speed.
    Are you using Flex Bulder?  Take a look at the app while the Profiler is running to see what I'm talking about.

  • How to fix imessage error on ios8.1.2 .. Already reset network still same issue please help

    How to fix imessage error on ios8.1.2 .. Already reset network still same issue please help

    Hi ashmanryan36,
    Thanks for using Apple Support Communities. Based on what you stated, it sounds like you are having trouble with iMessage. It looks like you have already done some troubleshooting. I would recommend that you read these articles, they may be helpful in troubleshooting your issue.
    If you can't send or receive messages on your iPhone, iPad, or iPod touch - Apple Support
    You did not mention what the error was but since you are running 8.1.2 and update is available and my help. 
    Update the iOS software on your iPhone, iPad, and iPod touch - Apple Support
    Cheers,
    Mario

  • Iteration Speed issue when Indexing 3D array wried to a while-loop

    Brief Description of my Program:
    I am working on the real-time signal generation by using LabView and DAQmx (PCI-6110 card). My vi reads the big data file (typically 8MB txt file containing about 400,000 samples (complex double precision). Then, the signal is pre-processed and I end up with a huge 3D array to feed while-loop (typically 3D array dimension is N x 7 x M where N & M >> 7). Inside the loop, that 3D array is indexed and processed before the results are written to the DAQmx outputs. I have a speed issue when indexing the large 3D array (i.e, 3D array having a large sub-array size). My while-loop could not run fast enough to top-up the DAQmx AO buffer (at the output rate of 96kHz). It could run faster only if I use smaller 3D array (i.e, smaller-sized sub-arrays). I do not quite understand why the size of 3D sub-array affects the rate of looping although I am indexing same sub-array size at each iteration. I really appreciate your comments, advices and helps.
    I include my 3D array format as a picture below.
    Question on LabView:
    How does indexing an 3D array which wires to the while-loop affect the speed of the loop iteration? I found that large dimension of sub-arrays in the 3D array slows down the iteration speed by comparing to indexing the same size of sub-array from smaller-sized sub-arrays of the 3D array to perform signal processing inside the while-loop. Why? Is there any other way of designing LabView Program to improve speed of iteration?
    attachment:

    Thank you all for your prompt replies and your interests. I am sorry about my attachment. But, I have now attached a jpg format image file as you suggested.
    I had read the few papers on large data handling such as "LabVIEW Performance and Memory Management". Thus, I had already tried to avoid making unnecessary copies of data and growing arrays in my while-loop. I am not an expert on LabView, so I am not sure if the issues I have are just LabView fundamental limitations or there are any other ways to improve the iteration speed without reducing the input file size and DAQ output rate.
    As you request, I also attach my top-level vi showing essential sections such as while-loop and its indexing. The attached file is as an image jpg format because the actual vi including Sub-VIs are as big as 3MB in total. I hope my attachment would be useful for anyone who would like to reply my question. If anyone would like to see my whole vi & llb files, I would be interesting to send it to you by an e-mail privately and thus please provide your e-mail address.
    The dimension of my 3D array is N x 7 x M (Page x Row x Column), where N represents number of pages in 3D array, and M represents the size of 1D array.  The file I am currently using forms 3D array of N = 28, & M = 10,731.  Refering to the top-level vi picture I attached, my while-loop indexes each page per iteration and wrap-around.  The sub-VI called "channel" inside the while-loop will further index its input (2D array) into seven of 1D arrays for other signal processsing.  The output from that "channel" sub-VI is the superposition of those seven arrays.  I hope my explaination is clear. 
    Attachement: 3Darray.jpg and MyVi.jpg
    Kind Regards,
    Shein
    Attachments:
    3Darray.jpg ‏30 KB
    MyVI.jpg ‏87 KB

  • Windows 7 64bit speed issues

    Hi,
    Our company have been purchasing iMacs for the past 4-5 years and installing Windows XP without any problems.  Last year we started installing Windows 7 64 bit onto, the then current, leopard model without any issues.
    We have recently purchased a whole batch of i5 iMacs with lion installed. I have installed Windows 7 64 bit without any problems but have started noticing huge slowdown with what seems to be hard drive access o every single machine.  Even a single one we purchased when they first came out.
    Using Perfmon I cant see any stress on the CPU, GFX card or RAM but there seems to be something odd with the hard drive access.  I have stripped Windows 7 down to its bare minimum services removing Aero, themes, and all non essential services but still the speed issues occur.
    I have messed around with the pagefile size, indexing, etc, but nothing is having any impact.
    For example, when I save a simple spreadsheet the saving window appears in Windows 7 with the spinning circle for around 30 seconds.  This is a tiny file, why is it taking so long.  Its virtually instant if done on a Windows XP bootcamp machine or even in Windows 7 on an older Leopard iMac.
    There really isnt a great deal regarding this problem oin the internet but it has occurred on all the new i5 Lion iMacs we have.
    Does anyone have any other suggestions (serious ones ) that I could try?
    I am currently installing the 32 bit version to see if it is a driver issue.
    Cheers

    isn't apple now using propritary drive firmware in 2011 imac?
    I suspect 30 sec is drive delay spinup and is frequently happens with green drives, I have some and do this. swap for WD black or something.
    www.hardmac.com talks about imac drives

  • Facing speed issue in my iphone 4, 16gb

    Hi Guys
    I am facing speed issue in my iphone 4, 16gb. may after updating ios 7, currenly i am using 7.0.4 update.
    please help me if anyone have soltion.
    Regards
    Parveen

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.
    The iPhone4 runs iOS7 without any issues or performance problems.
    Apple does not provide a method to downgrade the iOS on any iDevice.  Discussion of such matters in these forums is against the terms of use.

  • Networksetup script cannot commit changes to network database

    I use a shell script to configure my machines ip address quickly. This script works perfectly on 10.8 and 10.7. when i upgraded to 10.9, I can't use this script anymore. the system promt :
    networksetup -setmanual $2 $3 $4 $5
    ** Error: Unable to commit changes to network database.
    however, if I type the command in the terminal it is OK. But not in a sh script.
    I tried wait, sleep after the command in the script both doesn't work.
    any suggestions?
    #set IP addr
    #networksetup -listallnetworkservices
    if [ "$1" != "nochange" ]
    then
    systemsetup -setcomputername $1
    wait
    systemsetup -setlocalsubnetname $1
    wait
    #defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server.plist NetBIOSName $1
    fi
    if [ "$3" != "nochange" ]
    then
    networksetup -setmanual $2 $3 $4 $5
    wait
    fi
    if [ "$6" != "nochange" ]
    then
    networksetup -setdnsservers $2 $7
    wait
    fi
    networksetup -setsearchdomains $2 cn.oracle.com
    wait
    networksetup -setautoproxyurl $2 http://wpad/wpad.dat
    wait

    if you want to disable service, you can write script and put it to /Library/Startupitems/yourscriptname/
    this is a folder you must create ,and your script name must the same as folder name. and you also need a plist file in the same folder
    you can search for keyword "Startupitems"
    and i am using this to modify ip address when start. the script will run under root privilige
    and if you want to run in terminal, you must use
    sudo networksetup ....
    or sudo -i
    networksetup ...
    in addition
    add sleep several seconds after running this cmd seems solve this problem.
    I think the system need time to make change

  • Database performance issue (8.1.7.0)

    Hi,
    We are having tablespace "payin" in our database (8.1.7.0) .
    This tablespace is the main Tablespace of our database which is dictionary managed and heavily accessed by the user SQL statements.
    Now we are facing the database performance issue during the peak time (i.e. at the month end) when no. of users use to run the no. of large reports.
    We have also increased the SGA sufficiently on the basis of RAM size.
    This tablespace is heavily accessed for the reports.
    Now my question is,
    Is this performance issue is because the tablespace is "dictionary managed" instead of locally managed ?
    because when i monitor the different sessions through OEM, the no. of hard parses is more for the connected users.
    Actually the hard parses should be less.
    In oracle 8.1.7.0 Can we convert dictionary managed tablespace to locally managed tablespace ?
    by doing so will the problem will get somewhat resolve ? will it reduce the overhead on the dictionary tables and on the shared memory ?
    If yes then how what is procedure to convert the tablespace from dictionary to locally managed ?
    With Regards

    If your end users are just running reports against this tablespace, I don't think that the tablespace management (LM/DM) matters here. You should be concerned more about the TEMP tablespace (for heavy sort operations) and your shared pool size (as you have seen hard parses go up).
    As already stated, get statspack running and also try tracing user sessions with wait events. Might give you more clues.

Maybe you are looking for