Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Sync Query Problem?

  • This topic is empty.
Viewing 4 reply threads
  • Author
    Posts
    • #13555
      Sweens
      Participant

      Hi

       

      (Hope I’m posting this in the right place – novice forum user!)

       

      One table in my database tracks visits to a website – the total records count is now about 80million.

       

      I run a daily query for the synchronisation, so that (hopefully) only the newest records are added – so

       

      1) I only look at the id column (not all columns) in the ‘columns to compare’ and 

      2) The ‘SQL Where’ column is id > 79,900,000 (for example – I change this value regularly)

       

      However, it takes FOREVER to run – it looks like it is scanning all records instead of only those where id>79,900,000. 

       

      Am I doing this correctly?

       

      I there a better way of doing what I want – some way of only adding new records? I’m not bothered about the old data, as it won’t have changed.

       

      Any help much appreciated.

       

      Chris

    • #35759
      Sibin A S
      Moderator

      Hi Chris,

       

      Can you please tell the total number of columns in the table that you have been trying to sync. Also tell us the SQLyog version and MySQL server version.

       

      Regards,

      Sibin

    • #35760
      Sweens
      Participant

      Thanks Sibin

       

      There are 79268055 records in the source and 79109275 in the destination.

       

      Using v12.2.4

       

      EDIT – Sorry, misread your post; there are only 10 columns in the table.

       

      (I am thinking I should dump the oldest records and just use that last 2 years!)

       

      Cheers

      Chris

    • #35761
      Sibin A S
      Moderator

      Hello Chris,

       

      We will try reproducing this with similar number of rows. Also you can dump the oldest records if they aren’t required for you as it also decreases the load on the server as well.

       

      Regards,

      Sibin

    • #35762
      Sweens
      Participant

      Thanks for investigating, Sibin.

Viewing 4 reply threads
  • You must be logged in to reply to this topic.