text stringlengths 15 499 |
|---|
[04:38] <thumper> mwhudson: you need to import canonical.launchpad.database first |
[04:38] <mwhudson> import * is evil |
[04:38] <thumper> it blows |
[04:39] <thumper> that it is |
[04:39] <mwhudson> bug 402845 |
[04:39] <ubot3> Malone bug 402845 in launchpad-registry "./bin/py -c 'from lp.registry.model import person' fails due to circular import" [Undecided,Triaged] https://launchpad.net/bugs/402845 |
[04:39] <mwhudson> thumper: removing import *s from canonical.launchpad.database will help i think |
[04:39] <thumper> mwhudson: yeah, but likely to be a world of hurt |
[04:39] <thumper> mwhudson: it was a PITA when I did the code ones |
[04:39] <thumper> mwhudson: all the page tests :( |
[04:40] <mwhudson> thumper: maybe only a continent of hurt |
[04:40] <thumper> mwhudson: an Australia of hurt |
[04:44] <mwhudson> thumper: want to review https://code.edge.launchpad.net/~mwhudson/launchpad/much-faster-rewrite-map/+merge/9121 ? |
[04:44] <mwhudson> lifeless: you might be interested too |
[04:44] * thumper looks |
[04:45] <thumper> awaiting diff |
[04:45] <lifeless> mwhudson: not really, unless its different than we discussed |
[04:45] <lifeless> mwhudson: does it nuke the cache? |
[04:45] <mwhudson> fair enough |
[04:45] <mwhudson> lifeless: what do you mean? |
[04:45] <mwhudson> it still caches |
[04:46] <lifeless> how fast is a miss now? |
[04:46] <mwhudson> but cache misses are done via 1 direct query |
[04:46] <mwhudson> lifeless: < 1 ms i hope |
[04:46] <lifeless> thats pretty good |
[04:46] <lifeless> I'd really like to nuke the cache |
[04:46] <lifeless> or get a stream of updates from the db |
[04:47] <lifeless> thats 300K RPS we can serve @ 1ms per query |
[04:47] <lifeless> sorry, 300K Requests/5minutes |
[04:47] <lifeless> only 7 times our peak yesterday :) |
[04:48] <mwhudson> lifeless: i imagine stub would like the database to be able to do something else as well as serve these requests |
[04:48] <mwhudson> i guess we'd only peg a core at worst |
[04:48] <lifeless> at 1ms each we won't even come close to pegging a core |
[04:49] <lifeless> even at yesterdays peak |
[04:49] <mwhudson> lifeless: i think there's a good case for a very short cache, because of ".bzr/smart, .bzr/branch-format, .bzr/branch/format" |
[04:49] <stub> If it is a problem, we can get a dedicated db for this. I'd also consider if memcache is a good solution - we know we need it in other areas, we just need to integrate it all into the test suite so it is easy to use. |
[04:49] <lifeless> mwhudson: I think theres a strong argument for truncating the mapping at .bzr |
[04:50] <lifeless> mwhudson: because everything to the right is bzr internals |
[04:50] <mwhudson> lifeless: what? |
[04:50] <lifeless> the rewriter doesn't need to map foo/.bzr/baz |
[04:50] <lifeless> only foo/ |
[04:50] <mwhudson> right |
[04:50] <mwhudson> lifeless: maybe you should look at the code? |
[04:50] <lifeless> hmm, also backup.bzr |
[04:50] <lifeless> and .backup.bzr |
[04:50] <lifeless> mwhudson: perhaps |
[04:51] <lifeless> mwhudson: right now, I am trying to finish fixing iter_changes |
[04:51] <mwhudson> lifeless: also codebrowse! |
[04:51] <stub> I'm still unsure why we need to do substring matching (WHERE foo IN ('a', 'aa', 'aa/a', 'aa/aa') rather than splitting the path on '/' and looking for WHERE foo in ('aa', 'aa/aa') |
[04:51] <mwhudson> lifeless: fair enough |
[04:51] <lifeless> mwhudson: doesn't codebrowse map itself? |
[04:51] <mwhudson> lifeless: only when the request gets to codebrowse... |
[04:51] <mwhudson> stub: we don't |
[04:52] <mwhudson> stub: my code splits on '/' |
[04:52] <stub> ok |
[04:52] <mwhudson> stub: splitting on characters is actually wrong as well as just inefficient |
[04:52] <lifeless> mwhudson: if my looking at the patch will help you, I will |
[04:52] <lifeless> otherwise I trust in review :) |
[04:53] <mwhudson> lifeless: ok |
[04:54] <mwhudson> lifeless: i only suggested you looked (the second time) because you kept asking questions :-p |
[04:54] <lifeless> :) |
[04:55] <thumper> mwhudson: -> #launchpad-reviews |
[04:57] <stub> Getting rid of the cache or using a shared cache like memcache is needed to avoid weirdness when we scale horizontally - you don't want two different requests accessing different branches because they where served by different Apache's. |
[04:58] <stub> I guess we have that problem already though if someone renames a branch. |
[04:59] <mwhudson> thumper: i'm there |
[05:10] * wgrant juat managed to convince his local Launchpad to accept a PPA upload, publish it, build it, accept the binaries, and publish them. |
[05:10] <spiv> wgrant: woo! |
[05:10] <ajmitch> wgrant: great, how much did that take to setup? |
[05:10] <ajmitch> & have you documented whatever's missing for the rest of us? |
[05:11] <wgrant> ajmitch: I've got notes here. |
[05:11] <wgrant> It took a while, as there are almost no docs around... |
[05:11] <wgrant> And there are some nice obscure bits. |
[05:13] <wgrant> One particularly time-consuming bit was working out why my builds weren't being dispatched. Apparently they will only be dispatched if there is a source published in the archive. |
[05:13] <wgrant> Which doesn't make too much sense. |
[05:13] <lifeless> well |
[05:13] <lifeless> it does, when you consider NEW |
[05:15] <wgrant> But we build from ACCEPTED now. |
[05:15] <wgrant> I have a suspicion as to why it's like that. |
[05:15] <wgrant> But I need to find the bug report... |
[05:15] <lifeless> ok, you're the expert :P |
[05:17] <wgrant> OK, no, it wasn't what I thought. |
[05:27] <Ursinha> just realized today it's exactly one year I joined lp team |
[05:27] <thumper> Ursinha: congrats |
[05:28] <jml> hello again |
[05:28] <Ursinha> thumper, thanks :) |
[05:28] <jml> Ursinha, grats. |
[05:28] <jml> Ursinha, time flies when you're having fun :) |
[05:28] <Ursinha> jml, thanks |
[05:28] <Ursinha> jml, well said |
[05:28] <Ursinha> I'll quote you in my blog post :P |
[05:29] <jml> haha |
[05:29] <jml> oh, that reminds me. |
[05:29] <jml> what's so funny about ultimo.fm? |
[05:29] <Ursinha> jml, lol |
[05:29] <Ursinha> jml, that was a bad translation, because last == ultimo in portuguese |
[05:30] <Ursinha> but last.fm isn't translatable... :) |
[05:30] <jml> Ursinha, I thought it might be something like that :) |
[05:30] <Ursinha> jml, :) |
[05:44] * thumper goes to make veggie curry |
[05:57] <wgrant> ajmitch: http://williamgrant.id.au/f/1/2009/soyuzness.html |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.