FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Import Datadump
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Import Datadump [message #16244] Thu, 22 January 2004 00:13 Go to next message
mocara is currently offline  mocara   United Kingdom
Messages: 157
Registered: January 2004
Karma: 0
Senior Member
Hi.

I just datadumped a FUD install and it took a few minutes. I went to move that dump to another machine and it took well over an hour before I stopped it. It was doing stuff as the mysql files were getting bigger. I was just wondering though if someone could give me an idea of how long an import should take.
I have about 100,000 posts over 6 forums.
The import took so long I wasn't sure if it would be finished by the morning and that didn't seem right.

Pais.
Re: Import Datadump [message #16284 is a reply to message #16244] Sun, 25 January 2004 16:24 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
It definitely shouldn't take hours, however it can take quite a while, especially if you had the search engine enabled. The search table(s) for 100,000 message forum can contain few million of rows, which need to be inserted one by one.

FUDforum Core Developer
Re: Import Datadump [message #19645 is a reply to message #16284] Mon, 16 August 2004 17:08 Go to previous messageGo to next message
mocara is currently offline  mocara   United Kingdom
Messages: 157
Registered: January 2004
Karma: 0
Senior Member
Might having the mysql master log being written for each of these have a massive effect on the time taken?
At the moment it's about 1/10th the way through an import and it's been over 1 hour. 100,000 posts in the forum.

Mocara

[Updated on: Mon, 16 August 2004 17:08]

Report message to a moderator

Re: Import Datadump [message #19646 is a reply to message #19645] Mon, 16 August 2004 17:50 Go to previous messageGo to next message
mocara is currently offline  mocara   United Kingdom
Messages: 157
Registered: January 2004
Karma: 0
Senior Member
Okay, disabled bin log. It's still about 2 minutes per meg.
Could I stop mysq/apache copy all the files across, including the mysql files?
This is merely a practise run, so I'm open to all suggestions. On Sunday I have to copy all the data over and I don't fancy having to disable the forums for 10 hrs.

Mocara.
Re: Import Datadump [message #19648 is a reply to message #19646] Mon, 16 August 2004 19:27 Go to previous messageGo to next message
mocara is currently offline  mocara   United Kingdom
Messages: 157
Registered: January 2004
Karma: 0
Senior Member
Processed 1080000 queries

Now I get blank pages when I load the forum. I've run myisamchk on all the data files, but still I get errors such as
Quote:

[Mon Aug 16 19:31:33 GMT 2004] KC9kYXRhL3d3dy9zaXRlcy9kYXZlL3N0b2NraW5nc2hxLmNvbS9uZXdmb3J1bTMvaW5kZXgucGh wOjExNzxiciAvPgovZGF0YS93d3cvc2l0ZXMvZGF2ZS9zdG9ja2luZ3NocS5jb20vbmV3Zm9ydW 0zL2luZGV4LnBocDozODc8YnIgLz4KL2RhdGEvd3d3L3NpdGVzL2RhdmUvc3RvY2tpbmdzaHEuY 29tL25ld2ZvcnVtMy90aGVtZS9kZWZhdWx0L2luZGV4LnBocDo5NzxiciAvPgovZGF0YS93d3cv c2l0ZXMvZGF2ZS9zdG9ja2luZ3NocS5jb20vbmV3Zm9ydW0zL2luZGV4LnBocDoxMTgwPGJyIC8 +CikgMTA2NDogWW91IGhhdmUgYW4gZXJyb3IgaW4geW91ciBTUUwgc3ludGF4LiAgQ2hlY2sgdG hlIG1hbnVhbCB0aGF0IGNvcnJlc3BvbmRzIHRvIHlvdXIgTXlTUUwgc2VydmVyIHZlcnNpb24gZ m9yIHRoZSByaWdodCBzeW50YXggdG8gdXNlIG5lYXIgJycgYXQgbGluZSAxPGJyIC8+ClF1ZXJ5 OiBVUERBVEUgZnVkMjZfc2VzIFNFVCBzeXNfaWQ9JzA2OGQ2YWI5ZDllNmJlMWQ4ZDVkNmE4YzM xNTMyNjU3JywgZm9ydW1faWQ9MCwgdGltZV9zZWM9MTA5MjY4NDY5MywgYWN0aW9uPSdCcm93c2 luZyB0aGUgJmx0O2EgaHJlZj1cJnF1b3Q7aW5kZXgucGhwP3Q9aW5kZXhcJnF1b3Q7Jmd0O2Zvc nVtIGxpc3QmbHQ7L2EmZ3Q7JywgcmV0dXJudG89JycgV0hFUkUgaWQ9PGJyIC8+ClNlcnZlciBW ZXJzaW9uOiA0LjAuMTgtbG9nPGJyIC8+Cg==



Any ideas what might be going on here?

Mocara.
Re: Import Datadump [message #19649 is a reply to message #19648] Mon, 16 August 2004 19:34 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Delete all entries from fud26_ses table and try to login.

FUDforum Core Developer
Re: Import Datadump [message #19654 is a reply to message #19649] Mon, 16 August 2004 19:54 Go to previous messageGo to next message
mocara is currently offline  mocara   United Kingdom
Messages: 157
Registered: January 2004
Karma: 0
Senior Member
The guilty party has been found:
PHP Fatal error: Maximum execution time of 6000 seconds exceeded in adm/admimport.php on line 168

I've increased that to 20000 in the script and I'm running it again.

What times are to be expected for doing an import?

Mocara.

[Updated on: Mon, 16 August 2004 20:33]

Report message to a moderator

Re: Import Datadump [message #19657 is a reply to message #19654] Mon, 16 August 2004 23:50 Go to previous messageGo to next message
mocara is currently offline  mocara   United Kingdom
Messages: 157
Registered: January 2004
Karma: 0
Senior Member
The import script has been running for 4 hours now. Please tell me that this isn't right? Would 100,000 posts take this long to import? What is it doing that takes so long?

I went to bed, woke up and it's still hadn't completed within 20,000 secs. Would it not be quicker for me to stop the forum, copy the files, dump the mysql data, import it and then edit the GLOBAL to reflect the new server?


FYI, ran myisamchk on everything, deleted all entries from fud26_ses. Still no go.

Mocara.

[Updated on: Tue, 17 August 2004 09:52]

Report message to a moderator

Re: Import Datadump [message #19662 is a reply to message #19657] Tue, 17 August 2004 13:19 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The reason it's so slow, is because 100,000 posts would probably translate to several million entries inside the search tables. one alternative would be to manually import the sql data via mysqldump > mysqlimport and then copy over the files from old forum to the new.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: /etc/smrsh and maillist.php
Next Topic: Prevent deleted attachment from showing up?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 21:36:05 GMT 2024

Total time taken to generate the page: 0.02860 seconds