VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Gotten123 on September 15, 2014, 13:47:14 PM

Title: Parallelize downloads across hostnames with Virtuemart
Post by: Gotten123 on September 15, 2014, 13:47:14 PM
Hello,

I am trying to make my site more efficient by spreading the load of images across hostnames. I have a subdomain to a different IP called 'images.***.co.uk' I have copied the whole image directory of the main images directory to this sub. My issue is that changing the directory path in Media Settings in joomla is relative to Joomla and not the root apart from vm safe path which is relative to the root. I would like to change it so all paths are like this so i can change the paths to the new subdomain to make the site faster.

How do I change this?

version 2.0.20b

joomla 2.5.11
Title: Re: Parallelize downloads across hostnames with Virtuemart
Post by: GJC Web Design on September 15, 2014, 15:31:45 PM
as in the product objects the path is also relative just experiment with adding http://images.xxxx.co.uk/ in the template calls etc

or a general update in the #__virtuemart_medias table to add the http -- you will have to experiment
Title: Re: Parallelize downloads across hostnames with Virtuemart
Post by: Gotten123 on September 15, 2014, 16:43:46 PM
Okay i'll have a look at that, would rather look into changing template calls rather than changing db.

Image below gives context on what i'm trying to do. because the files are in a different part of the server and the start of the path is the start of joomla I can't link to it by default

https://www.dropbox.com/s/o1xkuhxkfwmupjf/333.jpg?dl=0
Title: Re: Parallelize downloads across hostnames with Virtuemart
Post by: jjk on September 15, 2014, 17:55:48 PM
Just wondering if you wouldn't get the same performance effect by using image subfolders like this:
http://forum.virtuemart.net/index.php?topic=115516.msg389228#msg389228
The links to the images are still stored in a single table, but the server doesn't have to go through a list of thousands of image file names in a single image folder.
Title: Re: Parallelize downloads across hostnames with Virtuemart
Post by: Gotten123 on September 15, 2014, 18:39:53 PM
If I understand you right, I don't think its so much the location its just that spreading 'static' contents across different hostnames can stop browser bottlenecks when it connects to two different hostnames rather than just the one.

Thank you for your comments so far!
Title: Re: Parallelize downloads across hostnames with Virtuemart
Post by: jjk on September 15, 2014, 19:19:13 PM
I agree with this (although the text is for another shop system): http://www.inmotionhosting.com/support/edu/prestashop-15/increase-store-performance/move-images
Title: Re: Parallelize downloads across hostnames with Virtuemart
Post by: Gotten123 on September 18, 2014, 16:32:54 PM
Thank you for the responses, but is there anyway I can edit the files so it goes to the root and not joomlas top level? Maybe there is a way i can hack the db table entry but that's probably not the best idea lol!