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

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 unnecessary queries in Admin area?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

e3stone
Average Member

USA
885 Posts

Posted - 10 October 2002 :  13:12:01  Show Profile  Send e3stone an AOL message
I was messing around with SQL Profiler and noticed that if I run a trace on the admin_home.asp page, it returns the following queries:


SELECT GROUP_ID, GROUP_NAME, GROUP_ICON, GROUP_IMAGE  FROM FORUM_GROUP_NAMES  WHERE GROUP_ID = 1
go
SELECT MEMBER_ID, M_LEVEL, M_NAME, M_PASSWORD  FROM FORUM_MEMBERS  WHERE M_NAME = 'xxx'  AND M_PASSWORD = 'xxx' AND M_STATUS = 1
go
SELECT COUNT(*) AS MySubCount FROM FORUM_SUBSCRIPTIONS WHERE MEMBER_ID = 1
go
SELECT COUNT(*) AS SubCount FROM FORUM_SUBSCRIPTIONS
go
SELECT GROUP_ID, GROUP_CATID  FROM FORUM_GROUPS  WHERE GROUP_ID = 1
go


these queries are all for general pages, but since they're located in inc_header.asp they're run in the admin area, as well. These aren't necessary in the admin area, are they?

<-- Eric -->

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 10 October 2002 :  18:06:18  Show Profile  Visit Gremlin's Homepage
No they perhaps shouldn't be executed.

5 additional queries executed though only whenever someone goes into the admin options is not going to make any big difference to performance imo, it's certainly nothing I'd lose sleep over.

Kiwihosting.Net - The Forum Hosting Specialists
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 1.88 seconds. Powered By: Snitz Forums 2000 Version 3.4.07