Results 1 to 9 of 9

Thread: Importing large amount of data in a pre-existing database

  1. #1
    Join Date
    Feb 2004
    Posts
    455

    Default Importing large amount of data in a pre-existing database

    Hello,

    How can I import a large amount of new data in a pre-existing database. My table are already partially populated, I do not want duplicate. I try using the "Import" feature but it does not work with already 25.000 rows (yes my text file is well formated, the same data are successfully imported when the table is empty), I try using the "Find Duplicate" feature but it does not work either for the same reason. I cannot use Access to pre-clean my data because the table is too large. What is the solution to my problem?

  2. #2
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Have you tried breaking down the data into multiple smaller files??? When I imported my 10,000 links, I broke them down into 10 files...

    Hopefully, thats what you mean

  3. #3
    Join Date
    Feb 2004
    Posts
    455

    Default

    I try to import as little as 50 rows at a time without success. With 14.000 row to go even if it was working (50 rows) it would not be practical.

  4. #4
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Do you have external access to your database? If so you can use a tool like MySQL front to import the file, and it will do it for you without timing out.

  5. #5
    Join Date
    Feb 2004
    Posts
    455

    Default

    I try to import my new data using "phpmyadmin" but I do get an error message every time I hit a duplicate.

  6. #6
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    phpmyadmin shouldnt complain about duplicates unless you have the link_id column popualted with numbers.

    What i would do is export your current databas to an excel spreadsheet from phpmyadmin. Get your other items you want to add also in a spreadsheet.then do some filtering in excel to get rid of duplicates and tidy it up. Export to a comma separated csv, empty current idx_link (aafter backup!) then import the csv file again
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  7. #7
    Join Date
    Feb 2004
    Posts
    455

    Default

    Thanks for your suggestion, My database is too big, Excel cannot handle a 100 Mb spreadsheet.
    I did find an alternate solution, I did load my new data in idx_link_temp then I validate my new link. Since I made my "title" field unique (I work on an article directory), MySQL reject duplicates title after they are validate. Not very efficient but it is the best solution I did find, it take about 30 minutes for 1000 links.
    You can see my Sure tips Articles directory at Sure Tips Article Directory, tell me what you think.

  8. #8
    Join Date
    Nov 2004
    Posts
    1,822

    Default

    excel? hmm, i open 1gb+ on mine... i know open office really struggles though. glad you got it working - good site :0)
    Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )

  9. #9
    Join Date
    Feb 2004
    Posts
    455

    Default

    Quote Originally Posted by inspireme View Post
    excel? hmm, i open 1gb+ on mine... i know open office really struggles though. glad you got it working - good site :0)
    I should confess that I never try to open my excel file with Open Office, I usually use Microsoft Office but I shall try, thanks for the tip. Open Office access my be able to help. I shall let you know.

Similar Threads

  1. Importing Data
    By CEC in forum v5.x
    Replies: 18
    Last Post: 06-23-2006, 06:01 PM
  2. Importing Data
    By CEC in forum v5.x
    Replies: 2
    Last Post: 05-07-2006, 06:16 PM
  3. Change to data in database
    By morgankd in forum v5.x
    Replies: 1
    Last Post: 06-24-2004, 01:05 AM
  4. Copying (importing) a database
    By Battousai in forum v5.x
    Replies: 25
    Last Post: 06-21-2003, 11:11 PM
  5. How to import existing database
    By Veg in forum v5.x
    Replies: 2
    Last Post: 05-20-2002, 08:33 PM

Posting Permissions

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