Gossamer Forum
Home : Products : Links 2.0 : Customization :

speed question about the add funktion (are templates better?)

Quote Reply
speed question about the add funktion (are templates better?)
hye

i found out, that the add page takes a long time to load if you've much categories and you're using the multi-cat mod.

i think the reason is, that the add.cgi everytime loads the selectfield new.

wouldn't it be better, to use a .html page for the add.page? so the page is always ready compilled an don't needs to build the select fields again.

let me know what you think about this...
cu

------------------
www.ford-network.at



Quote Reply
Re: speed question about the add funktion (are templates better?) In reply to
Clicking on Add from within a category will only display a category, not the whole list.

You could definately turn it into an html page, however make sure you update it whenever you add/remove/modify your category list.

Cheers,

Alex
Quote Reply
Re: speed question about the add funktion (are templates better?) In reply to
You could make an HTML page with an Add a Rsource FORM on it, and try to load it and add a resource. I think this way it would be faster, specially if on the busy site two people at the same time will try to compile the Add a Resource FORM using 'add.cgi' file. They might get an error (I'm not sure), or the process will take more time. So, I'd go with an HTML file on the busy site.

Regards,

Pasha

------------------
webmaster@find.virtualave.net
http://find.virtualave.net
Quote Reply
Re: speed question about the add funktion (are templates better?) In reply to
hye

alex: you're right. would be the best way, but not if you also have installed the mult-cat mod. Cause then the script also needs to load the category list. First modification I've made, was that the script doesn't load the category list twice (for category and for alternate categories - this was a bug in the mult-cat mod i mean!) but this have also token to much time.

I've tryed to clear this problem on different ways: load the select fields from a database and use a page for add.

what I found out:
if the add.cgi generates the page, it will need 5 to 10 times more then if i use a database for the select fields. I was happy :-)
this feature worked also at the admin menu - much faster!!!

BUT: i've tested and i shocked. wouldn't work for modifying a link or add failure. cause the checked fields wouldn't be checked.
(allright, cause the database haven't checked fields)......

so, now i'm using the database with the html-code for the select fields only for first time adding. Would be much faster. But the user shouldn't make a mistake, cause this takes a long time to load the page new with the checked select fields. Same problem with modify.

I will work on this speed bug.
Cause on the moment i'm only working with about 400 categorys. But the final of my homepage would have 2000 and up :-(

if you find a way to do, PLEASE let me know.

------------------
www.ford-network.at