Results 1 to 4 of 4
  1. #1
    reemi1979 is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Oct 2017
    Posts
    2

    Compact question

    Hi,





    I have 2 computers here;
    PC #1 :
    Windows 2012 server 64bits, with Microsoft Office 2010 32bits.

    PC #2 :
    Windows 2010 64bits, with Microsoft Office 2010 32bits.

    I have a Frontend 100% VBA process that I run, with a timer in milisecond. (it's a data copy from table A, B, C, D, to Table E)

    All tables are in the backend.accdb database.

    When I compact my backend .accdb with PC #1, the process take 77sec to complete.

    When I compact my backend .accdb with PC #2, the process take 7sec to compete.

    I always run the frontend process in the same folder, on PC #1
    The backend database is always in the same folder, on PC #1

    So, I only use another PC for compacting and it increase performance.

    If I compact with PC#1, its slow, if I compact it with PC #2 then it will be fast, and if I use PC #1 again it will be slow again...

    why...

  2. #2
    Join Date
    Apr 2017
    Posts
    1,679
    Quote Originally Posted by reemi1979 View Post
    I always run the frontend process in the same folder, on PC #1
    The backend database is always in the same folder, on PC #1
    So for what you have PC #2 there?

    In case you have your back-end on server, when you compact front-end, you compact elements in this particular front-end file (forms, reports, links to back-end tables, VBA code, etc.). When you compact back-end, you compact elements in back-end file (mainly tables there).

  3. #3
    reemi1979 is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Oct 2017
    Posts
    2
    Quote Originally Posted by ArviLaanemets View Post
    So for what you have PC #2 there?

    In case you have your back-end on server, when you compact front-end, you compact elements in this particular front-end file (forms, reports, links to back-end tables, VBA code, etc.). When you compact back-end, you compact elements in back-end file (mainly tables there).
    check my image.

    Fyi, my tests are always done on the server with "Automated Process" connected to server DB.

    I only compact with my PC#2 then I copy the DB to the server = faster result.
    If I ask the server to compact = slow result (almost 10 times)

    PC #2 is a VERY VERY high end PC.

    Click image for larger version. 

Name:	Untitled.png 
Views:	11 
Size:	52.2 KB 
ID:	30821

  4. #4
    Join Date
    Apr 2017
    Posts
    1,679
    An idea for possible cause.

    PC#2 is a high-end computer where you compact your copy of database back-end situated there. And when you compact it, there is nobody connected to it.

    PC#1 is a server which allows multiple remote connections (A terminal server?). And there is a sheduled process activated daily, which compacts database back-end in some folder on same server.
    How is the backup sheduled? Can some remote users be connected at same time, or do you kick them out before compacting?

    Another one: Are the folders in PC#1 for your back- and front-ends local folders, or network resources?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Compact & Restore
    By Koolaid in forum Access
    Replies: 3
    Last Post: 08-28-2017, 11:38 AM
  2. MDB Auto Compact
    By drunkenneo in forum Access
    Replies: 2
    Last Post: 06-09-2014, 07:21 AM
  3. Compact and Repair
    By Cyberice in forum Access
    Replies: 3
    Last Post: 03-18-2014, 03:22 PM
  4. trying to compact code
    By trevor40 in forum Programming
    Replies: 9
    Last Post: 03-17-2014, 09:04 AM
  5. Compact on Close
    By libraccess in forum Programming
    Replies: 2
    Last Post: 05-05-2013, 09:05 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums