Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (SteveS, Bjab), 37 Guests and 16 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/05/06
Posts: 469
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 23
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 2 1 2 >
Topic Options
#3487 - 09/19/06 05:24 AM Import Utility - Any Chance of Speeding Up?
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
I'm doing a test of the upgrade utility on my threads forum. I took my existing forum down at 1am. Now it's 5am and it's still updating users -

Processing users 15001 - 15201 of 22333

I'm worried that it's going to be quite a while before this all imports and I can re-start the existing forum again. Is there any hope of speeding this process up? The forums are on a dedicated high speed server, maybe they can go in larger loops than just 200?
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#3488 - 09/19/06 05:28 AM Re: Import Utility - Any Chance of Speeding Up? [Re: BellaOnline]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
OK just a quibble, in this line -

Importing Topic (Betta Fish Shows) and it's 4 replies.

it should be "its". The contraction "it's" is only for "It is". There is

his
hers
its

none have apostrophes.
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#3490 - 09/19/06 07:44 AM Re: Import Utility - Any Chance of Speeding Up? [Re: BellaOnline]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
OK, well I stayed up until 7:44am to see this through and after all that it failed!!

Importing Moderator Permissions for (12106)
Script:
Line#:
SQL Error:
SQL Error #: 0
Query: insert into newubbt_MODERATOR_PERMISSIONS values ( '' , 0 , 1 , 1 , 1 , 1 , 1 , 1 )

Any hope you can email a fix that just starts from here, rather than me having to start this all over from scratch?
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#3491 - 09/19/06 07:51 AM Re: Import Utility - Any Chance of Speeding Up? [Re: BellaOnline]
Gizmo Offline

Registered: 06/05/06
Posts: 14995
Loc: Portland, OR; USA
The importer file itself should have an area to adjust the ammount it uses for procesing (i'm thinking back to the intial testing anyway); its set at 200 as thats what was decided as a good number to avoid timeouts.
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#3498 - 09/19/06 11:35 AM Re: Import Utility - Any Chance of Speeding Up? [Re: Gizmo]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
It looks like your old db may be a little out of whack and there is a permission entry with no user. I'll add a fix to check for this. Line 1180 of threads_import.php looks like this:

Code:
if (!isset($user_array[$perm['P_Uid']])) {
	$new_uid = get_new_uid($perm['P_Uid']);
} else {
	$new_uid = $user_array[$perm['P_Uid']];
}


Right after that, add this:

if (!$new_uid) continuel

Top
#3499 - 09/19/06 11:37 AM Re: Import Utility - Any Chance of Speeding Up? [Re: Rick]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
As for speeding it up, I can add some variables to the top of the script for how many of each object to import per loop, but what they should be set at on a per server basis is hard to say. If it's too high on a slow server then there could be many timeouts, as Gizmo stated, which could lead to a bad import.
Top
#3527 - 09/19/06 09:23 PM Re: Import Utility - Any Chance of Speeding Up? [Re: Rick]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
OK,I can do that - but will it start the entire import again from scratch? I'm taking the live board down when I do this, and that gets a *lot* of traffic. So I'd rather not take it down again for another 6-7 hours for these tests if I don't have to ...? Will the import realize that some of the tables are already full and skip them?

I realize the server timeout issues - could the first page do a test import of say 100 rows, see how long it takes, and then come back with a recommendation of row count? That shouldn't be too hard I imagine ...?

In any case I do want to do my part here and get through a full test for you before the beta period ends so I'll start it up again around 1am when the boards are at least relatively quiet.
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#3528 - 09/19/06 09:26 PM Re: Import Utility - Any Chance of Speeding Up? [Re: BellaOnline]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
I don't mean to be trouble but I imagine you meant the line should be

if (!$new_uid) continue;

yes?
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#3529 - 09/19/06 11:07 PM Re: Import Utility - Any Chance of Speeding Up? [Re: BellaOnline]
Rick Offline
Post-a-holic
Registered: 06/04/06
Posts: 10164
Loc: Aberdeen, WA
Woops, yes that line should end with a semi-colon.

If you go to threads_import.php?ubb=mods then it should be able to pick up since it died in a relatively safe spot but there isn't a guarantee on that since if it tries to import a duplicate mod then it might error with a duplicate key error. In that case it will probably require a fresh import unfortunately.
Top
#3534 - 09/20/06 02:15 AM Re: Import Utility - Any Chance of Speeding Up? [Re: Rick]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
I had to delete the rows out of newubbt_MODERATOR_PERMISSIONS but once I did it did keep running past that point, starting from the ubb=mods URL.

On the polls import you don't say "out of X" to give a sense of how long that will take smile

Oddly on PMs it said -

Processing Private Messages 13501 - 13600 of 14697.

then on that same page it claimed it was done, and next went to an Import Complete page. What happened to the rest of the PMs? smile
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
#3537 - 09/20/06 06:05 AM Re: Import Utility - Any Chance of Speeding Up? [Re: BellaOnline]
DebbieH103 Offline
newbie
Registered: 08/05/06
Posts: 27
Mine finished after 42 hours for 94,000 posts. I see a couple of issues, will start a new topic.
Top
#3557 - 09/20/06 11:31 PM Re: Import Utility - Any Chance of Speeding Up? [Re: DebbieH103]
BellaOnline Offline
addict
Registered: 06/12/06
Posts: 515
We have 266,795 posts and it only took 7 hrs or so - and that includes the time to do a full backup of the existing system first. What kind of a system are you running on??
_________________________
Lisa Shea, owner, BellaOnline.com
BellaOnline Website
BellaOnline Forums
Top
Page 1 of 2 1 2 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image