Consulting

Results 1 to 6 of 6

Thread: Slow Import from Web

  1. #1
    VBAX Regular
    Joined
    Feb 2011
    Posts
    24
    Location

    Slow Import from Web

    Hello - I have a question. I have a code that imports data from several websites. The code takes at least 6 hours to run and about 700,000 records are imported with each run. I then take the data and store it in an access database. All data and stored queries are then deleted before the next run. I usually run the program two to three times a week.

    Now after using the program and collecting the data for three month, I noticed that the run is getting much slower and after couple of hours or so all icons, folders, and files on my desktop disappear.

    Any suggestion why this is happening? Anything related to my computer processor?

    Thanks

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    Quote Originally Posted by gtg430i View Post
    I noticed that the run is getting much slower <snip> Any suggestion why this is happening? Anything related to my computer processor?
    It is unlikely that the materials in your processor are degrading enough to cause this effect.
    However, if you were to post some code that you're using to import that data, we could perhaps have a clue.
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

  3. #3
    Knowledge Base Approver VBAX Wizard
    Joined
    Apr 2012
    Posts
    5,645
    I fear you not only import data form those websites but pictures/objects/formatting as well.
    It all depends on the method you use to import from those websites.

  4. #4
    Moderator VBAX Sage SamT's Avatar
    Joined
    Oct 2006
    Location
    Near Columbia
    Posts
    7,814
    Location
    Run Ccleaner (Ccleaner) after each data run.

    Program with TCP/IP
    I expect the student to do their homework and find all the errrors I leeve in.


    Please take the time to read the Forum FAQ

  5. #5
    You may have a problem with disk fragmentation. When you have large files, these files tend to be fragmented. Over time, fragmentation increases the average amount of time it takes to access the data (because of disk seeks). There are probably utilities that can tell you how fragmented your data is. The way Windows assigns disk storage accelerates fragmentation. This is remedied by regular defragmentation. If it is an SSD, you can scratch this idea, and moving to an SSD would undoubtedly cure it.

    Another issue is Windows memory management, i.e. Windows is a notoriously poor manager of storage. This is why many people re-boot which clears the storage management issue. Program memory usage is dynamic and constantly changing. If memory requirements go beyond a certain level which is determined by the amount of real storage available at the time, then the app can begin to page. This can drastically alter execution on any virtual memory operating system. This problem is more difficult to diagnose, and I have no clue how to do it on windows. On other systems, utilities indicate paging rates in real time. Windows may have this, too.

  6. #6
    VBAX Regular
    Joined
    Feb 2011
    Posts
    24
    Location
    Hi all - My apologies for the delayed response. I have downloaded Ccleaner as suggested from SamT. It actually solved the problem and the code is running faster.

    Thank you all for your help and suggestions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •