MS Access 2010: Query time and speed -


i running following insert query in ms access 2010, , need way query run faster. need of columns source_1_table temp_table.

  • source_1_table has 505k records
  • source_2_table has 3959 records

    insert [temp_table] select * source_1_table ((dbo_source_1_table.field_1)) not in (select [source_2_table].[id_field] [source_2_table]));

question 1. how see how long taking query run (similar ssms)? question 2. query seems taking longer 10 minutes run. there way speed query?

i've never worked many records in access db before, i'm not surprised it's slow.

i solved similar problem in legacy code. think big problem running subquery once every record in main query (someone please correct me if that's not correct). try instead:

insert [temp_table]  select s1.*      source_1_table s1     left join source_1_table s2 on s1.field_1=s2.id_field     s2.id_field null 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -