Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Slow site response after moving to mysql
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

jwashburn
Starting Member

28 Posts

Posted - 14 March 2006 :  12:47:44  Show Profile  Visit jwashburn's Homepage
I had a 20+gb access db, that I just moved to mysql. I didnt have any problems that I noticed, it all went smooth. I did this because my site was going very slow. I was having my host reset the appliction pool once a week. Now that I have moved it seems to be worse. I have been told that my domain has been moved into its own application pool, but still slow. Once the refresh it its fine for a while. I have asked for the Event logs so I can research the issue, but they wont give those up, so any other ideas?

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 14 March 2006 :  13:13:03  Show Profile  Send ruirib a Yahoo! Message
Did you create the database tables using setup.asp, when moving to MySQL?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

jwashburn
Starting Member

28 Posts

Posted - 14 March 2006 :  17:10:36  Show Profile  Visit jwashburn's Homepage
Good question. I dont remember now. I think I did, because I remember when I tried to restore the databse it gave me an error on the create table portion of the script becuase the table were already there.

Is there something different with the way the work

Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 14 March 2006 :  19:29:05  Show Profile  Visit AnonJr's Homepage
When you let setup.asp create the table it creates all the indexes too. Without a properly indexed database you'll see a drop in performance.

Might be worth looking at again.
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 14 March 2006 :  19:53:15  Show Profile  Send ruirib a Yahoo! Message
If you have DB indexes, that is, if your table structure was created by SNitz, then the problem will lie elsewhere. Maybe an overloaded server?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

jwashburn
Starting Member

28 Posts

Posted - 15 March 2006 :  10:02:51  Show Profile  Visit jwashburn's Homepage
Is there a way to reindex?

Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 15 March 2006 :  15:30:50  Show Profile  Visit Gremlin's Homepage
Check your tables for duplicate records, in particular the archive tables which are a little prone to getting duplicates (the first Snitz version that included the archive mod if I recall correctly never included indexes on those tables).

Also check that there indexs present on those tables and if not, then I'd suggest creating them.

You can create indexes using something like phpmyadmin which your host probably provides, or you can just install a copy under your domain. Those two tables should have the following indexes:

FORUM_A_REPLY
PRIMARY KEY (CAT_ID, FORUM_ID, TOPIC_ID, REPLY_ID),
KEY FORUM_A_REPLY_CATFORTOPREPL(CAT_ID,FORUM_ID,TOPIC_ID, REPLY_ID),
KEY FORUM_A_REPLY_REP_ID(REPLY_ID),
KEY FORUM_A_REPLY_CAT_ID(CAT_ID),
KEY FORUM_A_REPLY_FORUM_ID(FORUM_ID),
KEY FORUM_A_REPLY_TOPIC_ID (TOPIC_ID)

FORUM_A_TOPICS
PRIMARY KEY (CAT_ID, FORUM_ID, TOPIC_ID),
KEY FORUM_A_TOPIC_CATFORTOP(CAT_ID,FORUM_ID,TOPIC_ID),
KEY FORUM_A_TOPIC_CAT_ID(CAT_ID),
KEY FORUM_A_TOPIC_FORUM_ID(FORUM_ID),
KEY FORUM_A_TOPIC_TOPIC_ID (TOPIC_ID)

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

jwashburn
Starting Member

28 Posts

Posted - 15 March 2006 :  16:05:59  Show Profile  Visit jwashburn's Homepage
So I should index the FORUM_A_REPLY, the FORUM_A_TOPICS. What other ones should be indexed. I have never archived.

What should I index off of?


Edited by - jwashburn on 15 March 2006 16:06:58
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 15 March 2006 :  16:58:48  Show Profile  Visit Gremlin's Homepage
If you've never archived, then those tables should be empty and not an issue.

Do you understand how to create and manage indexes on your database? If not, then it could be a good idea to let someone take a look at it for you, as you can do quite a bit of damage if your unsure what to do.

I note you say your database is 20+GB ? gigabyte? really? By default application pools will reset every 29 (from memory) hours, I'd perhaps be suspecting the slowness was/is a problem on the host side of things rather than Snitz as well. Having said that, running MS Access databases on Server 2003 installations in my experience has been very promlematic especially once you get several busy sites running on them (Microsoft actually have refused to assist helping with several issues I've had stating that access isn't "supported" in that environment).

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 16 March 2006 :  15:41:47  Show Profile  Visit modifichicci's Homepage
If you index A_REPLY and A_TOPICS you could have problems in archiving, as I have found on my mysql.
You could have the error duplicate key, but not in all forums this happens. I don't know why.

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum

Edited by - modifichicci on 16 March 2006 15:48:23
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 16 March 2006 :  16:14:11  Show Profile  Visit Gremlin's Homepage
It happens becuase you've got corrupt records with duplicate ID's in them, this is becuase of the lack of indexing originally on this table meaning there was no enforced integrity. If you archive posts and say it fails, then you run it again you often end up duplicating one or more rows. You can find the duplicates with a simple query using the GROUP BY function e.g.

SELECT REPLY_ID, COUNT(REPLY_ID)
FROM FORUM_A_REPLY
GROUP BY REPLY_ID
HAVING (COUNT(REPLY_ID) > 1 )

Kiwihosting.Net - The Forum Hosting Specialists

Edited by - Gremlin on 16 March 2006 16:14:44
Go to Top of Page

jwashburn
Starting Member

28 Posts

Posted - 17 March 2006 :  19:09:51  Show Profile  Visit jwashburn's Homepage
I have a friend who is pretty well versed in mysql, ill have him take a look.

I know there must be something wrong, because I tried to a simpe search and it just hangs. That tells me some index is screwy

Go to Top of Page

jwashburn
Starting Member

28 Posts

Posted - 22 March 2006 :  12:19:23  Show Profile  Visit jwashburn's Homepage
Just in case someone else screws this up like I did. I created a new mysql db and set up another copy of snitz and created all the tables, then I used dbtools to look at the index's and recreated them on my production forum and all was well.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.63 seconds. Powered By: Snitz Forums 2000 Version 3.4.07