Sign InRegisterForgotten password?

RebelmouseTwitterFacebook

Tech Note: The LGF Pages Reboot

Integrated
LGF • Views: 28,807

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.

Advertisement

^ back to top ^

Turn off ads by subscribing!
For about 33 cents a day, 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 in our weblog, unless you request otherwise.
Tech Note:
Using the Contact Form
LGF Pages 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 and text already filled in.
Recent Pages
Haywood Jabloeme
Scientists Agree on Climate Change, Why Doesn’t the Public? : NPR
A new study confirms that the vast majority of scientists who research the climate accept that the planet is warming and human beings are largely responsible. Yet a large slice of the American public believes that scientists are deeply split about global warming. More: Scientists Agree on Climate Change, Why Doesn't the Public? : NPR

2 hours, 1 minute ago
Views: 21 • Comments: 0
Tweets: 0 • Rating: 0
FemNaziBitch
A Married Man’s Sexual Epiphany — the Good Men Project
Your sex appeal shoots through the roof! You achieve the status of "sexy man". Your wife sees you in a new attractive light which is the only light that allows her to see you this way. In fact, many other women notice as well--wherever you are. You morph into that man other guys envy and women adore. And until now, you had no ...

18 hours, 57 minutes ago
Views: 207 • Comments: 1
Tweets: 0 • Rating: 2
theye1
The Greatest (Movie) Speech Ever Made
73 years later is still relevant and powerful as ever. It's also because of this movie that Charlie Chaplin was labelled a "premature anti-fascist."

1 day, 8 hours ago
Views: 274 • Comments: 7
Tweets: 0 • Rating: 5
Romantic Heretic
The Singing Ringing Tree
Some people built this strange looking statue in England. And this is what it sounds like. Youtube Video

1 day, 9 hours ago
Views: 99 • Comments: 1
Tweets: 0 • Rating: 2
Vicious Babushka
Tonight’s Shabbos Menu (& Recipes)
Tonight's menu: Baked Gefilte FishBroiled Rainbow TroutRedskin Potato SaladChicken Noodle Soup Wine: Herzog ZinfandelDessert: Frozen Strawberry Daquiri Tomorrow's menu: Gefilte Fish, TroutRomaine/Avocado SaladOlive Pasta SaladRedskin Potato Salad Wine: Herzog Orange MuscatDessert: Frozen Margaritas Middle East Fried Chicken Recipe 1 broiler chicken, cut into 8ths1/4 c. unbleached flour1/2 c. Panko breadcrumbs1 Tbsp. Za'atar seasoning1 Tbsp. olive oil Preheat oven to 425. Put 1 Tbsp oil ...

1 day, 12 hours ago
Views: 163 • Comments: 1
Tweets: 1 • Rating: 4
Skip Intro
Your Weekly Peggy Noonan Three Martini Column
We are in the midst of the worst Washington scandal since Watergate. The reputation of the Obama White House has, among conservatives, gone from sketchy to sinister, and, among liberals, from unsatisfying to dangerous. No one likes what they're seeing. The Justice Department assault on the Associated Press and the ugly politicization of the Internal Revenue Service have left the administration's credibility deeply, ...

1 day, 13 hours ago
Views: 191 • Comments: 3
Tweets: 0 • Rating: 2
Michael McBacon
4 Things We Should Remember When Arguing About Politics
Political discourse in America has reached levels of douchebaggery previously only theorized about but never observed, like conversational dark matter. We're in a whole new world of hating people based solely on their opinions on a few key issues, and since this is unexplored territory, our conversations about politics are usually only a couple notches beyond the "hold your breath until the other ...

1 day, 18 hours ago
Views: 266 • Comments: 0
Tweets: 0 • Rating: 2
Political Atheist
LAPD Reformed as Federal Oversight Lifted, City Leaders Say
Los Angeles leaders say the Los Angeles Police Department has undergone a dramatic transformation since federal oversight of the agency was ordered 12 years ago. The dismissal Wednesday of the so-called consent decree, which arose largely out of the Rampart corruption scandal and addressed basic problems of accountability that stretched back decades, delivered a largely symbolic, but nonetheless important milestone for the LAPD ...

1 day, 18 hours ago
Views: 158 • Comments: 3
Tweets: 0 • Rating: 4
Feline Fearless Leader
What to do in Orange County - LA - San Diego
Seems a good way to solicit ideas for touristing destinations and activities. Will have 4-5 days so some opportunity for visiting multiple sites. And since I do have an interest in history and military history items in that area will be welcome suggestions. (The USS Midway down in San Diego is already on the list.) If there is anything California-geology related that would be ...

1 day, 20 hours ago
Views: 134 • Comments: 4
Tweets: 0 • Rating: 4
Randall Gross
Sam Harris: The Fireplace Delusion
I hate to have to point this out, but: I DID NOT WRITE THIS ESSAY. I'm just READING IT ALOUD. This essay came to my attention recently, and it's an excellent exercise for a skeptic or atheist to experience this feeling of loss of innocence and the painful feelings it summons. See it through to the end before posting, please. The source:samharris.org Next ...

2 days, 17 hours ago
Views: 305 • Comments: 1
Tweets: 0 • Rating: 2
 Frank says:

If it sounds GOOD to YOU, it's bitchen; and if it sounds BAD to YOU, it's shitty.