=== Ursinha-afk is now known as Ursinha | ||
cjwatson | wgrant: Is there any sensible way to search for code that preloads DAS? | 13:34 |
---|---|---|
cjwatson | It doesn't seem to have much in the way of unique reference attribute names | 13:34 |
cjwatson | And there are 827 matches for DistroArchSeries in lib/lp | 13:35 |
wgrant | cjwatson: I doubt anything does, as there usually aren't too many referenced by a batch. | 13:35 |
wgrant | Possibly build lists. | 13:35 |
wgrant | Oh | 13:36 |
wgrant | But they'll not access processor anyway | 13:36 |
wgrant | derp | 13:36 |
cjwatson | 81 files after I exclude tests etc. - maybe I can just read through those | 13:36 |
wgrant | in this case we only care about something that returns a collection of DASes through the webservice | 13:36 |
cjwatson | Which is just distro_series.architectures AFAICS | 13:37 |
wgrant | Very probably. | 13:37 |
cjwatson | That doesn't seem to bother preloading anything right now | 13:38 |
wgrant | Indeed | 13:38 |
wgrant | As we never have more than a few | 13:38 |
cjwatson | Plain references to DAS don't matter? | 13:39 |
cjwatson | (I don't know the raw representation very well) | 13:40 |
wgrant | No, they'll just be serialised as a link | 13:40 |
wgrant | That's why launchpadlib is dreadfully slow | 13:40 |
wgrant | Reference(Choice)s are serialised as links, Lists as lists of links, Collections as links to lists of representations. | 13:40 |
wgrant | So only Collections are a concern here | 13:41 |
cjwatson | Right, so this should be fine but I should make sure to try fetching DS.architectures in QA | 13:41 |
wgrant | Right | 13:41 |
cjwatson | thanks | 13:42 |
wgrant | cjwatson: Ah, I guess you'll need to override processor to readonly=False in the add form | 14:48 |
cjwatson | hmph, right | 14:48 |
wgrant | Forgot that, sorry | 14:49 |
cjwatson | will sort | 14:49 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!