TwitterFacebook

Tech Note: The LGF Pages Reboot

Integrated
LGF • Views: 29,164

The new LGF Pages re-design is now in launch mode, and the first thing you’ll notice is that it looks a lot like the rest of the site. And that’s a good thing.

The old LGF Pages index had its own design, which actually started as a coding experiment way back in the day. Now it’s completely integrated into the design of the rest of LGF.

It’s more than a design integration, though; I also lavished a lot of attention on the plumbing, the MySQL queries that manipulate the LGF Pages database tables. Many of these queries worked very well as long as the whole list of Pages wasn’t too large — but with the number of Pages approaching 300,000, those queries were becoming unacceptably slow. In the lingo, they weren’t scaleable. That’s why I had to take the LGF Pages index offline when we installed our new servers.

Now these queries are very scaleable; I’ve optimized and refactored the queries and the PHP code behind them to make this new version respond much more quickly — again, like the rest of LGF.

If you’re signed in to an LGF account, some of the stats displayed on LGF Pages indexes are now “live,” updated at 5-second intervals, including the last comment and the page views. The Twitter counter is updated too, but at 90-second intervals.

When you scroll all the way to the bottom of the list of Pages, there’s a big button labeled “Show More Pages.” If you’re so inclined you can just keep clicking this button and showing more Pages until you reach the end, or your browser explodes, whichever comes first.

(Disclaimer: LGF not responsible for exploding browsers.)

Individual authors of Pages have their own indexes, just as in the old version, but again they now appear in a style consistent with the rest of LGF. You can get to any author’s LGF Pages by clicking their username in one of their Pages. The URL for your Pages looks like this (giving you a personal LGF web address):

littlegreenfootballs.com/pages/charles

And… one of the main problems with the old LGF Pages index was the search function. Basically, it sucked, and I say that as the author. Mea culpa. The biggest reason it sucked was because MySQL doesn’t have FULLTEXT indexing for tables of the InnoDB type, but you don’t really care about that. All you care about, and I don’t blame you, is that it’s fast. And the old LGF Pages search feature was the opposite of fast.

The solution: I’ve been noticing for a while that Google is crawling the heck out of LGF, and LGF Pages often show up in Google search results almost immediately after being posted, so I used Google’s “Custom Search Engine” feature to set up a special tool that searches LGF Pages. To use the custom Google search, type your search terms into the field in the left sidebar labeled “Google LGF Pages…”

Google’s search is ridiculously fast. Damned near instantaneous, in fact. Check it out and see how it compares to the old LGF Pages search feature.

^ back to top ^

TwitterFacebook

Turn off all ads for a full year by subscribing!
For about 33 cents a day (per month) or 22 cents a day (per year), our subscription option turns off all advertisements at LGF!
Read more...

► LGF Headlines

  • Loading...

► Tweeted Articles

  • Loading...

► Tweeted Pages

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► Tag Cloud

► Contact

You must have Javascript enabled to use the contact form.
Your email:

Subject:

Message:


Messages may be published unless you request otherwise.
Tech Note:
Using the Contact Form
LGF Pages

This button leads to the main index of LGF Pages, our user-submitted articles. You can post your own LGF Pages simply by registering a free account with us.

Create a Page

This is the LGF Pages posting bookmarklet. To use it, drag this button to your browser's bookmark bar, and title it 'LGF Pages' (or whatever you like). Then browse to a site you want to post, select some text on the page to use for a quote, click the bookmarklet, and the Pages posting window will appear with the title, text, and any embedded video or audio files already filled in, ready to go.

Or... you can just click this button to open the Pages posting window right away.

Last updated: 2014-03-07 2:19 pm PST

LGF User's Guide
Recent Pages
Skip Intro
Congressman Vows to Investigate Google Searches of ‘America’ Movie
Republican Congressman Dana Rohrabacher, a frequent foe of Google, is demanding to know why the giant Internet company was fumbling the search results for DineshD'Souza's movie America for nearly three weeks. Shortly after the movie opened wide on July ...

20 minutes ago
Views: 22 • Comments: 0
Tweets: 0 • Rating: 0
Randall Gross
Rulings on Health Law Are Far From Last Word
An appellate court ruling issued Tuesday would be very bad news for the Affordable Care Act if it became the law of the land. But it's still a long way from a settled issue, as a second appellate decision, ...

6 hours, 53 minutes ago
Views: 168 • Comments: 1
Tweets: 5 • Rating: 1
FemNaziBitch
Members of Congress Take ‘Minimum Wage Challenge’ to Live Off Reduced Budget for a Week
Since he began his minimum wage challenge on Sunday, former Ohio Governor Ted Strickland, now president of the Center for American Progress Action Fund, has had eggs and toast, a bowl of cereal with a peanut butter and jelly ...

9 hours, 24 minutes ago
Views: 136 • Comments: 2
Tweets: 1 • Rating: 0
Mentis Fugit
Frisson
Over at the quirky Riddled blog, I encountered this music video link. I have the album, but I had last listened long ago, and I had forgotten the lyrics. The lengthy, moody intro slowly drew me back thirty five years, ...

20 hours, 46 minutes ago
Views: 84 • Comments: 0
Tweets: 0 • Rating: 0
BadExampleMan
The painful futility of war
This makes me furious. These men pledged their loyalty to their country and their country betrayed them. It treated them as disposable, throwing their lives away in a war that was premised on lies, that was chosen gleefully, and that ...

2 days, 13 hours ago
Views: 263 • Comments: 0
Tweets: 1 • Rating: 0
MichaelJ
Mick Fanning Wins J-Bay Open 2014
More: MICK FANNING WINS J-BAY OPEN Finals day for the contest was run in perfect Supertubes conditions. Too bad Kelly Slater and Jordy Smith were eliminated in lesser quality surf - it would have been amazing to have both of ...

2 days, 22 hours ago
Views: 207 • Comments: 0
Tweets: 0 • Rating: 1
Rightwingconspirator
ISIS Threatens Iraqi Christians in Mosul
Baghdad, Iraq (CNN) -- Extremists occupying large swaths of Iraq and Syria have issued a threat to Iraqi Christians in the city of Mosul: accept Islam, pay extra taxes to Islamic Sharia courts or face "death by the sword." ...

5 days ago
Views: 621 • Comments: 9
Tweets: 19 • Rating: 3
Thrazidun
Paris: Jews Fight Back Against Islamist Mob - Jewish World - News - Arutz Sheva
More: Paris: Jews Fight Back Against Islamist Mob - Jewish World - News - Arutz Sheva

5 days, 6 hours ago
Views: 692 • Comments: 5
Tweets: 0 • Rating: 1
GlutenFreeJesus
Gotta love Chicago
Admittedly, I only started following these guys in the past year or two. They have been in the Chicago scene for awhile. And I kick myself after every show for not following them sooner. For any fans of Led Zeppelin, ...

5 days, 7 hours ago
Views: 314 • Comments: 0
Tweets: 0 • Rating: 2
wheat-dogghazi
Rachel Aviv: A Middle-School Cheating Scandal Raises Questions About No Child Left Behind
Writing for The New Yorker, Rachel Aviv profiles some of the teachers and principals caught up in Atlanta's standardized cheating scandal. Focusing on Parks Middle School, which is located in a "rough" section of the city, her article portrays a ...

5 days, 15 hours ago
Views: 481 • Comments: 2
Tweets: 8 • Rating: 2
 Frank says:

If there is a hell, it waits for them, not us!