
k.rudnik at gmail
Jun 23, 2010, 11:54 AM
Post #6 of 6
(545 views)
Permalink
|
On Wed, Jun 23, 2010 at 8:40 PM, Krzysztof Rudnik <k.rudnik [at] gmail> wrote: > On Wed, Jun 23, 2010 at 6:50 PM, David E. Wheeler <david [at] kineticode> wrote: >> On Jun 23, 2010, at 8:56 AM, Bret Dawson wrote: >> >>> I was wondering the same thing. If the cover itself is the result of a >>> $story->list(), Doesn't Bricolage still have to do the hard work of >>> loading all the metadata into memory? >> >> It depends on what that metadata is. If it's just the URL, title, and description, yes. But as soon as you start asking it for its elements, it shoots off more queries. If you spelunk into a deep subelement, that could be a lot of queries. No, this is not ideal. >> >>> If you needed to extract a bunch of data from subelements I would see >>> the advantage of this approach. But I'm curious whether it makes much >>> difference in this case. > > As I said I need uri, title, author, caver_date, categories, keywords > and description for each story. > ( just decided to use description instead of deck field to save some resources) > > In my case the situation is much more complicated. > I have TeX Action which does quite a heavy and tricky job after burning > (tex compilation, picture generation for math formulas, caching results etc.) > If there are 100 stories in a category then after adding the next one > (story101): > 1. in standard approach TeX Action for a Cover would generate pictures > for all (also unchanged) 101 stories - horrible overhead. > 2. in the new approach no TeX Action is required because all texing > for story101 has been done during its last preview burning [.there is > nothing to tex in the Cover body at all] > > Coming back to the mess in the preview server. > All I want is to trigger preview burning in all other OC's associated > with the story. > > form the docs: > $burner->preview_another > .... > "Like publish_another(), it will not bother to preview the document > if it's the same story as the currently burning story." > > So it will probably not the right way. > > Krzysztof May be $burner->burn_one($story,$story->get_primary_category, $Web_Meta_OC_obj) if $burner->previewing would do the job? k
|