1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Image Site Getting Too Big

Discussion in 'Black Hat SEO' started by Yildiz, Jul 16, 2014.

  1. Yildiz

    Yildiz Regular Member

    Joined:
    Mar 9, 2012
    Messages:
    381
    Likes Received:
    128
    Occupation:
    Software Engineer
    Location:
    Boston, MA
    So I have a site that hosts a couple thousand images and I feel like having so many images is starting to slow it down. Is there anything that I can do to increase the speed? Is there a way to find which images are not being visited/havent been visited in a while? I appreciate any advice! Thanks
     
  2. aka sam

    aka sam Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 15, 2011
    Messages:
    4,071
    Likes Received:
    901
    Gender:
    Male
    Occupation:
    Internet Marketer
    Location:
    Black Hat World
    Home Page:
    How are you tracking the traffic to that site? GA ??
     
  3. Yildiz

    Yildiz Regular Member

    Joined:
    Mar 9, 2012
    Messages:
    381
    Likes Received:
    128
    Occupation:
    Software Engineer
    Location:
    Boston, MA
    Yeah, i'm using Google Analytics. Is that going to be a problem?
     
  4. Slim.

    Slim. Junior Member

    Joined:
    Jun 7, 2012
    Messages:
    186
    Likes Received:
    93
    Occupation:
    Affiliate Manager
    Location:
    England
    I wouldnt have thought so. I think he was likely referring to audience behavior, where you should be able to find the information you are after. Open GA and go Behavior > Site content > All pages. That should show you which images are being viewed and which are not, assuming each image has its own page.
     
    • Thanks Thanks x 1
  5. bartosimpsonio

    bartosimpsonio Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 21, 2013
    Messages:
    11,570
    Likes Received:
    10,408
    Occupation:
    CHEAP WWW DATASETS
    Location:
    ⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓⇓
    Home Page:
    The only problem with GA is you're handing all your visitor's data over to Google for free.
     
  6. Repulsor

    Repulsor Power Member

    Joined:
    Jun 11, 2013
    Messages:
    765
    Likes Received:
    275
    Location:
    PHP Scripting ;)
    I assume your site keeps the number of page views and date since the image is uploaded. I would make a script, which for example checks images uploaded before a month, which havent been visited xxx times and delete them.

    Well, I doubt having many images would slow it down. I would make an index to the database, if it isnt already done. It will speed everything atleast 10x.
     
    • Thanks Thanks x 1
  7. Nerevar

    Nerevar Jr. VIP Jr. VIP

    Joined:
    Jun 30, 2010
    Messages:
    471
    Likes Received:
    174
    Move your images to a CDN, like Rackspace Cloud Files or something similar.
     
    • Thanks Thanks x 3
  8. HatArrows

    HatArrows Regular Member

    Joined:
    Jun 28, 2013
    Messages:
    426
    Likes Received:
    122
    Location:
    Data Mines
    Do we have any other alternates as good as GA ?
     
    • Thanks Thanks x 1
  9. davids355

    davids355 Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 25, 2011
    Messages:
    9,554
    Likes Received:
    7,072
    Home Page:
    ^^I use statcounter and that works great for me.

    OP, How many visitors are you getting per day, roughly? And what sort of system are you running the site on - what are specs, bandwidth allowance etc?
    You really need all of that info before you can start making assumptions on where the problems lie, and then you can make some decisions/changes.
     
    • Thanks Thanks x 1
  10. SavyCon

    SavyCon Regular Member

    Joined:
    Jun 25, 2012
    Messages:
    261
    Likes Received:
    87
    Location:
    Taha'a
    This seems like a scaling issue to me.

    What is your backend built on? What sort of server(apache/Nginx/etc)/host are you using? One way to scale is to use a CDN or Content Delivery Network, which basically distributes the resources across several servers & have the server to only fetch image info when requested. Also, you might want to refactor your code to break up some of the processes such as file upload and image requests, among other requests. For example, you don't want your one server to load up the CSS, JS, & Images every time a page loads. You can typically cut down say 10-50+ HTTP requests PER PAGE on one server by using a CDN and breaking up some of the backend processes distributed through the CDN.
     
    • Thanks Thanks x 1
  11. sudorank

    sudorank Power Member

    Joined:
    Jun 24, 2013
    Messages:
    640
    Likes Received:
    475
    Occupation:
    Web Developer
    Location:
    Swansea, UK
    Home Page:
    Are many of the images .png format?

    You can compress .png losslesly (It won't lose quality)

    You can do it with a .php script which could be added to your site.

    http://pngquant.org/php.html

    .jpeg is a different story - I guess deleting ones that don't get traffic'd on the fly and moving to a faster host /adding CDN is the only way there.
     
    • Thanks Thanks x 1
  12. closedCaption

    closedCaption Regular Member

    Joined:
    Oct 3, 2011
    Messages:
    289
    Likes Received:
    111
    Buy some cheap VPS and host your images there.
     
  13. eimFlood

    eimFlood Junior Member

    Joined:
    Dec 21, 2012
    Messages:
    172
    Likes Received:
    58

    Piwik? http://piwik.org/
     
    • Thanks Thanks x 1