TwitterFacebook

Tech Note: The LGF Pages Reboot

Integrated
LGF • Views: 29,258

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
William Barnett-Lewis
An analogy for white people: Walking while black, in the US, is as deadly as being a redshirt
My dear fellow white science-fiction fans, let me use an analogy to try to explain one reason why people are so angry about what's happening in Ferguson. If you only watch one episode of Star Trek (original series), the ...

36 minutes ago
Views: 43 • Comments: 0
Tweets: 0 • Rating: 2
Randall Gross
Talking Turkey: A Holiday Guide for Responding to Your Uncle Who Loves Fox News
In case you want to refute that [wingnut] kultur Warryur for Jaysus! [/wingnut] relative after the plates are cleared and the pie eaten, here are some easily remembered talking points. Myth 1: The United States was founded to be a ...

41 minutes ago
Views: 55 • Comments: 0
Tweets: 0 • Rating: 0
The Vicious Fergushka
The Scientific Explanation of Why People Kill Each Other Over TVs on Black Friday
More: The Scientific Explanation of Why People Kill Each Other Over TVs on Black Friday What causes people to kick, shove and even stab each other on Black Friday? Each year there are reports of violence during the Black Friday ...

2 days, 1 hour ago
Views: 320 • Comments: 2
Tweets: 6 • Rating: 1
Skip Intro
Anti-Gay Hate Preacher Accidentally Tweets 4,000 Followers Cartoon Clip of Him ‘Confessing’ to Be a ‘Homosexual Sodomite’
Adam Reakes Promotes Truth That Starbucks Markets Semen Laced Lattes http://t.co/RY06dEEb0I— James David Manning (@DrJamesDManning) November 20, 2014

2 days, 3 hours ago
Views: 514 • Comments: 0
Tweets: 0 • Rating: 1
Lumberhead
One Man Should Not Dictate Immigration Policy
Well played. You know, the more I mull over the Republican complaint about how immigration reform is being implemented, the more I sympathize with them. Public policy, especially on big, hot button issues like immigration shouldn't be made by one ...

2 days, 21 hours ago
Views: 360 • Comments: 6
Tweets: 0 • Rating: 7
teleskiguy
“Chelsea Hotel” performed by Tal Wilkenfeld
I first saw Austrailian bass player Tal Wilkenfeld play with Jeff Beck (not live, mind you. On YouTube) and was amazed at her skills and chops. She was only 20 when she scored that gig. She's coming into her own ...

4 days, 17 hours ago
Views: 240 • Comments: 0
Tweets: 0 • Rating: 4
FemNaziBitch
History of Laws Concerning Immigration and Naturalization in the United States -WIKI
The United States Constitution was adopted on September 17, 1787. Article I, section 8, clause 4 of the Constitution expressly gives the United States Congress the power to establish a uniform rule of naturalization.[1] Pursuant to this power, Congress ...

5 days, 2 hours ago
Views: 348 • Comments: 1
Tweets: 1 • Rating: 3
MichaelJ
COMFORTABLY NUMB - Peahi Nov 12 on Vimeo
Channel angle of the Nov 12th swell at Peahi.

1 week, 1 day ago
Views: 507 • Comments: 0
Tweets: 1 • Rating: 2
Romantic Heretic
Money Makes Us Less Rational
Here's an interesting article on scientific studies that demonstrate how rationality and empathy break down is the presence of large amounts of money.

1 week, 4 days ago
Views: 714 • Comments: 2
Tweets: 0 • Rating: 2
 Frank says:

Lord have mercy on the people in England for the terrible food these people must eat. And Lord have mercy on the fate of this movie and God bless the mind of the man in the street.