Results 1 to 6 of 6
  1. #1
    edmscan is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    168

    Best way to load Access table with 10 million records ?

    I want to load some test data into a table to test .. the performance of an Access database and run a query against it.

    So .. yes, 10 million records. The records will be quite small .. but lots of them.



    Well .. after some testing. I decided that it is insane to run a SQL statement .. to load the data. I did it the old fashioned way. I made a huge txt file with 11 million+ lines in it. That look a few minutes.
    Then .. imported the file in Access into my table.

    One hell of a lot faster ... but the jury is still out to see how Access will perform in querying the data. That is for another thread maybe.

    But looking for normalization / optimization suggestions. My relationships are below .. mainly cause I don't know how to delete it.
    Attached Thumbnails Attached Thumbnails Untitled.png  
    Last edited by edmscan; 06-30-2014 at 09:57 PM. Reason: Adding Info ..

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    What does it mean to "load data"?

    It seams as though you are duplicating data. Did not look too close but it is hard to take your questions seriously.

    Access is a tool to manage data. Perhaps you need to import data from an outside source. Correct me if I am wrong.

  3. #3
    edmscan is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    168
    Maybe my terminology is bad .. I just want to end up with a table with the required number of records .. with "Some sort of Test Data". The number of records is important .. for performance testing and the data has to be valid due to the foreign keys.

  4. #4
    edmscan is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    168
    I have 11,204,496 rows .. and now just time to optimize things. Access is pretty efficient .. could be a lot worse.

    Here is a sample of what the records look like .. along with my relationships above.

    Click image for larger version. 

Name:	Untitled.png 
Views:	15 
Size:	31.7 KB 
ID:	17054


    If anyone has any thoughts about query / normalization improvements .. please let me know.

    The Transmissions table has 11+ million rows, the KevinGroup (aka Group above) about 450 and Kevin (aka Radio above) about 6400. This is data from a communications system.

    I really only run one query on the data .. below.

    SELECT TOP 45 Kevin.User, Transmissions.Type, Transmissions.Group, KevinGroup.Name, Transmissions.Radio, Count(Transmissions.Group) AS CountOfGroup1
    FROM Kevin RIGHT JOIN (Transmissions LEFT JOIN KevinGroup ON Transmissions.Group = KevinGroup.Group) ON Kevin.Radio = Transmissions.Radio
    GROUP BY Kevin.User, Transmissions.Type, Transmissions.Group, KevinGroup.Name, Transmissions.Radio
    ORDER BY Count(Transmissions.Group) DESC;

  5. #5
    hapm is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2014
    Posts
    197
    Perhaps it will get a little quicker when you set up a combined index over Transmissions.Group and Transmissions.Radio. Let me know if it helps.

  6. #6
    edmscan is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    168
    Thanks .. I will try it. Always looking for ways to make things faster.

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

Similar Threads

  1. Getting Form to Filter Records On Load
    By Dclassen89 in forum Forms
    Replies: 12
    Last Post: 02-01-2014, 07:39 PM
  2. Replies: 1
    Last Post: 03-22-2013, 03:33 AM
  3. Replies: 3
    Last Post: 05-16-2012, 02:56 PM
  4. Replies: 3
    Last Post: 08-23-2011, 04:35 PM
  5. filter records to populate form on load
    By rivereridanus in forum Forms
    Replies: 3
    Last Post: 08-05-2011, 08:54 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