Aquarionics

Saturday 17th January 2004

Bug Tracking

[13:57] <ccooke > morning
[13:57] Saw this and thought you might be interested: http://homepage.ntlworld.com/clivebillson/tube/tube.html
[13:58] oooh
[13:58] thanks
[13:59] drop the tube.html from the end to get at the graphics without the irritating JS
[14:05] aww, shame
[14:05] they only have 1936 on
[14:05] Hmm?
[14:07] the page claims to have maps back to the 1880s
[14:08] http://homepage.ntlworld.com/clive.billson/tubemaps/1889.html ?
[14:09] And http://homepage.ntlworld.com/clive.billson/tubemaps/
[14:10] ah. different.
[14:13] fuck
[14:13] I’ve just found a bug in Epistula
[14:13] ?
[14:14] Epistula executes 1387 queries per page
[14:14] that is a very large number
[14:14] You are not kidding.
[14:15] In fact, it executes one query for every object in Epistula that isn’t a comment
[14:18] I shall go out on a limb and suspect that is not desired behaviour
[14:18] Yeah
[14:25] so what’s up?
[14:27] Ah, a limit problem
[14:29] The front page is $limit items. In order to generate this, Eps gets the last $limit items from each table of things that can be on the front page, sorts them by date, and cuts the array to the last $limit items
[14:29] Sadly, I forgot the limit break on the second clause of this.
[14:30] So it got everything from each table that it could display, then the attachments and comments for each of those.
[14:39] oh hell
[15:23] Right. Down to 190 queries, which is better
[15:28] Most of which are “Do I have a crossreference? Aha, cool. What’s the title of the page I’m crossreferencing to… okay, do I have a permalink for that? No, right…”
[15:30] I’m awfully glad I’m caching all of this, because I suspect that one and a half thousand queries per page-load would probably result in my being killed, slowly, and with sticks.

(I should make Eps have an ‘index’ table so it can grab the last 10 items without having to run four queries, but that’s a Future Thing)


Nicholas 'Aquarion' Avenell is a web developer in London, you can find out more about him or how to get in touch.

There are more Articles, Projects, Journal Entries, Photographs and things that defy description here, too.

If you're looking for something specific, there are Calendar & Category -based lists of everything.

And if you want to follow stuff that appears here, try a Syndication Feed, or the generic Feed of everything.


Aquarion's last Twitter was: [updating]
Twitter last updated


More Journal:

[RSS Icon]
[ESF Icon]
[CDF Icon]

That which is relevant:


Explain Ads
© 2000 to 2008 inclusive Nicholas Avenell
All comments are the property of their creators, published with permission
(Unless otherwise indicated, the opinions and sentiments expressed on this site are those of the author and not of any organisation of which he is an affiliate, including his employer. Caveat Lector, E&OE. sigh)
0.933 seconds, 11 queries, 2.61Mb on Mon, 28 Jul 2008 18:56:28 +0000
Generated by Epistula Version 2.0.3