/srv/irclogs.ubuntu.com/2013/12/13/#launchpad-dev.txt

=== Ursinha-afk is now known as Ursinha
cjwatsonwgrant: Is there any sensible way to search for code that preloads DAS?13:34
cjwatsonIt doesn't seem to have much in the way of unique reference attribute names13:34
cjwatsonAnd there are 827 matches for DistroArchSeries in lib/lp13:35
wgrantcjwatson: I doubt anything does, as there usually aren't too many referenced by a batch.13:35
wgrantPossibly build lists.13:35
wgrantOh13:36
wgrantBut they'll not access processor anyway13:36
wgrantderp13:36
cjwatson81 files after I exclude tests etc. - maybe I can just read through those13:36
wgrantin this case we only care about something that returns a collection of DASes through the webservice13:36
cjwatsonWhich is just distro_series.architectures AFAICS13:37
wgrantVery probably.13:37
cjwatsonThat doesn't seem to bother preloading anything right now13:38
wgrantIndeed13:38
wgrantAs we never have more than a few13:38
cjwatsonPlain references to DAS don't matter?13:39
cjwatson(I don't know the raw representation very well)13:40
wgrantNo, they'll just be serialised as a link13:40
wgrantThat's why launchpadlib is dreadfully slow13:40
wgrantReference(Choice)s are serialised as links, Lists as lists of links, Collections as links to lists of representations.13:40
wgrantSo only Collections are a concern here13:41
cjwatsonRight, so this should be fine but I should make sure to try fetching DS.architectures in QA13:41
wgrantRight13:41
cjwatsonthanks13:42
wgrantcjwatson: Ah, I guess you'll need to override processor to readonly=False in the add form14:48
cjwatsonhmph, right14:48
wgrantForgot that, sorry14:49
cjwatsonwill sort14:49

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!