Create a Blog | Log in
BLOGS DOT MIDDLEBURY the Middlebury blog network



Website Improvements #1: Reducing home page load time by 80%

February 8th, 2010 by Ian McBride

Now that the new www.middlebury.edu site is live, we’ll be making continuous updates to improve the design, interface, and performance of the site. After launching the site, the most obvious area requiring improvement was load time for the homepage. Even on campus, the page would take between 12-15 seconds to fully load. Most of this was loading the list of stories to display on the homepage. This used a View in Drupal which would execute this query on the database:

SELECT node.nid AS nid,
   RAND() AS _random
 FROM node node
 LEFT JOIN mm_recycle mm_recycle ON node.nid = mm_recycle.id AND (mm_recycle.type = 'node')
 LEFT JOIN term_node term_node ON node.vid = term_node.vid
 LEFT JOIN term_data term_data ON term_node.tid = term_data.tid
 LEFT JOIN vocabulary vocabulary ON term_data.vid = vocabulary.vid
 WHERE (node.type in ('story')) AND (mm_recycle.id IS NULL) AND (node.promote <> 0) AND (vocabulary.vid = '11') AND (term_data.name = 'Home')
   ORDER BY _random ASC

The Views module claims that it take this amount of time total to execute this query:

Query build time 12.57 ms
Query execute time 7.83 ms
View render time 28.9 ms

So, about half a second total just to run the query. Unfortunately, the Views module can’t return all of the information I need to build the list of stories, particularly the database IDs for all of the images used in the stories, which are stored in a module that we haven’t fully integrated with Views at this time. While it will be great to get the server-side operations of this query optimized, we needed a good short-term solution for shortening the load time of the home page.

The other problem with the Views approach is that the results were not being efficiently cached by the server. The list of stories on the homepage will change weekly, or daily, but with thousands of people hitting the site at the same time, new requests are fetching the information many times per second. We can assume that most of these people are going to receive the same list of stories, so we now have the server hold onto a copy of the list of stories until someone saves a story node on the site. This is now done using a direct query of the database, bypassing the Views module.

Here’s the difference in page load time:

home_page_load

The list of stories is the fourth line and takes 181ms to load, or two tenths of a second. The main bottleneck for the homepage is now loading the Google Analytics graphic from the remote service. Of course, occasionally you will experience a slow load as you’re the unlucky one that hits the home page right after a cache clear due to someone saving a story, but on average you’ll find the site faster. We expect that this change will have ripple effects in increasing performance on the rest of the site as load on the database is decreased.

This post is the first in a series meant to shed light on the improvements we’re making on the site. My goal is to do at least one thing each week to dramatically improve our website experience for someone. If there are particular things about the site that you feel need improvement, please fill out the web feedback form. If you have questions about this topic, leave a comment.

Course Reserves

February 6th, 2010 by Kellam Ayres

With Spring Term about to begin, Library Reserves is busy preparing print, media, and electronic materials for course work. The best way to contact the Reserves Department with requests and questions is through the Library Reserve mailbox: libres@middlebury.edu. Email is the best way to ensure a timely response to all Reserve needs. Please don’t hesitate to be in touch. We’re here to help!

Thank you LIS staff!

February 6th, 2010 by Elin Waagen

thank-you-sign-251x388
It takes a village to raise a web presence and at Midd over 295 people helped create the new College website. Many of those were LIS staff. Almost every person in LIS touched a part of our new LIS web presence, a truly collaborative effort! Individuals, teams, work groups and areas across LIS pulled together to make it happen – all in a very short time frame with reduced budgets and staffing resources.

LIS staff created content and navigation using three different platforms, Drupal, Mediawiki and Wordpress, to create a web presence to meet the diverse needs of our user community and to also represent all of us in LIS.

People who worked on the Drupal platform to create the LIS web pages, Help and Support, Library, and LIS Landing, include Joe Antonioli, Kellam Ayres, Mary Backus, Jim Beauchemin, Doreen Bernier, Bryan Carson, Alex Chapin, Sue Driscoll, Brenda Ellis, Peggy Fischel, Adam Franco, Daniel Frostman, Arabella Holzapfel, Jess Isler, Richard Jenkins, Jeffrey Lahaie, Mike Lynch, Carrie Macfarlane, Rachel Manning, Ian McBride, Barbara Merz, Ben Molberger, Chris Norris, Joy Pile, Hans Raum, Jeff Rehbach, Mack Roark, Danielle Rougeau, Mike Roy, Lynn Saunders, Terry Simpkins, Marcy Smith, Joe Toth, Elin Waagen, Joseph Watson, Andy Wentink and Liz Whitaker-Freitas.

Countless others, including some LIS student employees, have helped create content and documentation in Wordpress and Mediawiki. They include Adam Franco, Alex Chapin, Andy Wentink, Arabella Holzapfel, Barbara Merz, Ben Molberger, Brenda Ellis, Brendan Owens, Brendan Smith, Brian Foley, Bryan Carson, Carol Peddie, Carrie Macfarlane, Cynthia Slater, Cynthia Watters, Daniel Frostman, Danielle Rougeau, Dean Cadoret, Doreen Bernier, Elin Waagen, Liz Whitaker-Freitas, Gary Weiss, Hans Raum, Ian McBride, Jim Beauchemin, Jean Simmons, Jeff Rehbach, Jess Isler, Joe Antonioli, Joe Toth, Joseph Watson, Joy Pile, Judy Watts, Kellam Ayres, Linda Knutson, Lisa Terrier, Lynn Saunders, Mack Roark, Marcy Smith, Peggy Fischel, Marlena Evans, Marty New, Mary Backus, Mike Lynch, Mike Roy, Michael Warner, Nancy Reynolds, Nate Burt, Patty Hornbeck, Petar Mitrevski, Phil Gullion, Rachel Manning, Richard Jenkins, Shawn O’Neil, Shel Sax, Steve Bertolino, Sue Driscoll, Terry Simpkins, Todd Sturtevant, and Travis Stafford.

If I have omitted anyone – please excuse the oversight – and let me know!

In addition, I’d like to thank Mike Roy, Mary Backus, Terry Simpkins, Carol Peddie, Jeff Rehbach and Shel Sax for their support of the work of the Web Team, critical to the success of both the process and the end result. A special thanks to Jeff Rehbach, our fearless and supportive team sponsor.

This post would not be complete without a HUGE thanks to the members of the LIS Web Team – Jess, Ian, Jim, Liz, Carrie, Doreen, and Barbara for their tireless dedication to the project. I will be forever grateful for the opportunity to work and learn with them.

The web team could not possibly have orchestrated this project without the support and hard work of so many! The LIS web presence is a work in progress and will continue to evolve and grow with the help of all LIS staff, and our work together will give our users not only the best possible web experience, but will also be a shining indication of all the good work that we do in LIS.
A BIG thanks to you all!

Book your own equipment!

February 4th, 2010 by Dan Frostman

Users can now book equipment for future use via MIDCAT. Just search for the equipment you want to book and click the “Place Reservation” button. Bookings can then be viewed or canceled in My MIDCAT.

The Middlebury Blog Network

February 4th, 2010 by Alex Chapin

The “Blogging at Middlebury” blog has been renamed “The Middlebury Blog Network” and is now using the Translucence theme.  As well, it has been reconfigured to aggregate selected posts from the Midd blogosphere.  Blog owners interested in having their blogs listed on this site currently need to contact Joe Antonioli.

Library Spotlight

February 3rd, 2010 by Carrie Macfarlane

The front page of the new library site (at http://midd2.middlebury.edu/academics/lib today, and at go/lib later tomorrow) has a “Library Spotlight” section that will feature news and tips for library users. The content will come straight from the LIS blog.  Anything here that’s tagged “Library Spotlight” will show up there too.

If you know something that library users would want to know too, please post it to the LIS blog and add the “Library Spotlight” tag to your post.  The neat thing is that you’ll be getting the word out to LIS staff and library users all at once.

Use the “Library Spotlight” tag for information such as:

  • new library resources, collections, web sites, search techniques, go shortcuts, etc.
  • hidden library treasures and answers to common questions
  • changes in library hours, services and facilities

Thank you in advance!  The more “Library Spotlight” posts there are, the better the library site will be.

LIS Wiki Gets a Facelift

February 3rd, 2010 by Carrie Macfarlane

Not to be outdone by the College website’s extreme makeover tomorrow, the LIS Wiki got its own facelift today.  To help our readers find what they need, it now  features audience-specific collections of links to wiki content. Anyone still can search the wiki, but readers who prefer browsing now have a new option.

The LIS Website Team compiled these links with your help–thank you!  If you don’t see your favorite wiki content in the audience-specific lists, please log in and contribute.

If you have feedback or questions, or if you need help with editing the wiki, let us know!  Post a response here in the blog, or write to liswebteam@middlebury.edu.

discussion of video and copyright

February 1st, 2010 by Michael Roy

This is from one of the lists that I am on, and seemed worthy of broader distribution via the LIS Blog.

The Association for Information and Media Equipment has recently challenged one of our institution’s copyright compliance regarding the posting of video on university servers for instruction. As we understand it from the press, this challenge has resulted in the institution no longer posting the video for fear of legal action.

This situation echos previous instances when content owners have threatened our institutions with litigation for infringement, for example the various institutions whom the American Association of Publishers approached regarding e-reserves and course management systems a few years ago. It differs from the peer to peer aspect of copyright significantly because, apart now from HEOA compliance, our colleges and universities did not have liability as conduit service providers, i.e. the allegedly infringing material was not being served from our servers, we acted only as I.S.P.s. Thus, this current matter is serious. Not only does it threaten exorbitant legal expenses and damages in both dollars and reputation, by touching instruction it threatens the exercise of our missions.

Steve Worona, on EDUCAUSE’s behalf, has begun a blog to educate people about this matter and stimulate discussion in the community. http://www.educause.edu/blog/sworona/UCLAVideoStreamingDamnedDammed/197444

Please take a moment to learn more about this matter, as we are learning about it, and most especially talk with your colleagues at home and around the community. It may be that higher education must approach the issue from a range of positions (standing firm on fair use, understanding better the opportunities and limitations of the Teach Act, proactively and collectively arranging for licensing are some examples that jump quickly to mind) but what is absolutely critical is that we do so as a community, working to help each other to preserve our missions.

RSS Teams

RSS Areas & Workgroups

RSS Institutions

RSS Middlebury Web Makeover