Author Topic: So low to load...  (Read 22388 times)

0 Members and 1 Guest are viewing this topic.

Offline MadKroll

  • Newbie
  • *
  • Posts: 21
    • View Profile
So low to load...
« on: December 27, 2002, 02:06:37 PM »
Hi!

When a click on the link for show an album where there is much pics, it's so long to load...
But, if there is no pics in the album that load fastly :)
I work i local... (EasyPHP.org)

Bye all =)

Offline MadKroll

  • Newbie
  • *
  • Posts: 21
    • View Profile
So low to load...
« Reply #1 on: December 28, 2002, 12:47:54 AM »
Help-me plz !!!
There is a patch ?

thx all +

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Nothing is broken
« Reply #2 on: December 28, 2002, 03:19:13 AM »
Check includes/constants.php
Code: [Select]

// If you have a lot of images in your database,
// the random image function could make your programm slow.
// Try first to set "SHOW_RANDOM_CAT_IMAGE" to 0.
define('SHOW_RANDOM_IMAGE', 1);
define('SHOW_RANDOM_CAT_IMAGE', 1);

Offline MadKroll

  • Newbie
  • *
  • Posts: 21
    • View Profile
So low to load...
« Reply #3 on: December 28, 2002, 11:49:19 AM »
:/
I have tryed:

define('SHOW_RANDOM_IMAGE', 1);
define('SHOW_RANDOM_CAT_IMAGE', 0);

and

define('SHOW_RANDOM_IMAGE', 0);
define('SHOW_RANDOM_CAT_IMAGE', 0);

and

and define('SHOW_RANDOM_IMAGE', 0;
define('SHOW_RANDOM_CAT_IMAGE', 1);

but, there is no changes :/ Alwayys lonng and after, it shows a blank page (because too long)

Offline cisiodon

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Slow
« Reply #4 on: December 28, 2002, 12:05:02 PM »
Go to your database and make Indexes.


MIke
http://www.netforum.com.br

Running PostNuke Multi Theme -  X-Forum - WebCam Portal - 4Images gallery
Banner Exchange 1:1
Paint Board on Line with Gallery and Blogs
Powered by AdoDB

I am not the owner of the world... But I am the son of it!

Offline MadKroll

  • Newbie
  • *
  • Posts: 21
    • View Profile
So low to load...
« Reply #5 on: December 28, 2002, 01:47:05 PM »
how to do Indexes ?!

thx mike :)

Offline cisiodon

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Indexes
« Reply #6 on: December 28, 2002, 01:54:02 PM »
Use PHPMyAdmin and make indexes.........

This is an example that indexes tables in PostNuke...

alter table nuke_comments add index idx_pid (pn_pid);
    alter table nuke_comments add index idx_sid (pn_sid);
    alter table nuke_group_membership add index idx_ug (pn_uid,pn_gid);
    alter table nuke_message add index idx_exp (pn_active,pn_expire);
    alter table nuke_modules add index idx_name (pn_name);
    alter table nuke_poll_data add index idx_pollid (pn_pollid);
    alter table nuke_pollcomments add index idx_pollid (pn_pollid);
    alter table nuke_referer add index idx_url (pn_url);
    alter table nuke_stats_date add index idx_date (pn_date);
    alter table nuke_session_info add index idx_last (pn_lastused);
    alter table nuke_stories add index idx_catid (pn_catid);
    alter table nuke_stories add index idx_topic (pn_topic);
    alter table nuke_user_data add index idx_uid (pn_uda_uid);
    alter table nuke_userblocks add index idx_ub (pn_uid,pn_bid);
    alter table nuke_users add index idx_uname (pn_uname);

Hope help you !!

Mike
http://www.netforum.com.br

Running PostNuke Multi Theme -  X-Forum - WebCam Portal - 4Images gallery
Banner Exchange 1:1
Paint Board on Line with Gallery and Blogs
Powered by AdoDB

I am not the owner of the world... But I am the son of it!

Offline MadKroll

  • Newbie
  • *
  • Posts: 21
    • View Profile
So low to load...
« Reply #7 on: December 28, 2002, 02:27:46 PM »
?
i must change what ? (table names, and how choose names of index ?)
Have u the code for 4images tables ?

Thx :-)

bye all

Offline MadKroll

  • Newbie
  • *
  • Posts: 21
    • View Profile
So low to load...
« Reply #8 on: December 28, 2002, 03:07:40 PM »
i have do it:

alter table 4images_categories add index idx_catname (cat_name,cat_id);
alter table 4images_comments add index idx_cmtid (comment_id);
alter table 4images_comments add index idx_cmtuname (user_name);
alter table 4images_groupaccess add index idx_grpaccess (group_id,cat_id);
alter table 4images_groupmatch add index idx_grpmatch (group_id,user_id);
alter table 4images_groups add index idx_grp (group_id,group_name);
alter table 4images_images add index idx_images (image_id,image_name);
alter table 4images_images_temp add index idx_imgtmp (image_id,image_name);
alter table 4images_lightboxes add index idx_lightbox (lightbox_id);
alter table 4images_postcards add index idx_postcards (postcard_id,image_id);
alter table 4images_sessions add index idx_sessions (session_lastaction);
alter table 4images_sessionvars add index idx_sessvars (session_id,sessionvars_name);
alter table 4images_wordmatch add index idx_wordmatch (image_id,word_id);
alter table site_users add index idx_users (id,pseudo);

Its always loww :(
Plz i need help !!!

Offline MadKroll

  • Newbie
  • *
  • Posts: 21
    • View Profile
So low to load...
« Reply #9 on: December 29, 2002, 11:49:51 AM »
HELPPPPPPPPPPPPPPPPP-ME !!!!!!!!!!!
Its so lonnnnnnnnnnnnnnnnnnnnnng to loaddd

Offline cisiodon

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Slow
« Reply #10 on: December 29, 2002, 12:30:35 PM »
What is your OS and http server ?
Are you Local Hosting ?

MIke
http://www.netforum.com.br

Running PostNuke Multi Theme -  X-Forum - WebCam Portal - 4Images gallery
Banner Exchange 1:1
Paint Board on Line with Gallery and Blogs
Powered by AdoDB

I am not the owner of the world... But I am the son of it!

Offline MadKroll

  • Newbie
  • *
  • Posts: 21
    • View Profile
So low to load...
« Reply #11 on: December 30, 2002, 09:51:27 AM »
Yes, i am in Local Hosting (using EasyPHP.org) and my OS is Windows XP...

Thats all :)

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
So low to load...
« Reply #12 on: December 30, 2002, 10:09:14 AM »
have u checked phperror.log and apache error.log files?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline MadKroll

  • Newbie
  • *
  • Posts: 21
    • View Profile
So low to load...
« Reply #13 on: December 30, 2002, 10:14:03 AM »
yes, nothing...
But, my website is fast, vbulletin is fast, just the album of 4images where there is many pictures (23) is looooooooow and looooooooong !

Plz need assistance =)

Offline cisiodon

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Slow
« Reply #14 on: December 30, 2002, 11:35:04 AM »
Normally when enabled GD bibliotec in php.ini on Windows then 4images too slow.
You Must specify also the TEMP dir in php.ini and memory to run PHP scripts.

MIke
http://www.netforum.com.br

Running PostNuke Multi Theme -  X-Forum - WebCam Portal - 4Images gallery
Banner Exchange 1:1
Paint Board on Line with Gallery and Blogs
Powered by AdoDB

I am not the owner of the world... But I am the son of it!