----- Original Message -----
From: "Bill Peck" <bpeck(a)redhat.com>
To: "Raymond Mancy" <rmancy(a)redhat.com>, "List for the development of
the Beaker project" <beaker-devel(a)lists.fedorahosted.org>
Sent: Wednesday, November 11, 2009 5:22:43 AM GMT +10:00 Brisbane
Subject: Ticket 55
Hi Raymond,
I checked out ticket55 branch and tried it out. Couple observations..
1) can we have it hide the Keyvalue pull down when Key/Value is not
selected? Hide the pull down and the title as well. :-)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I was perplexed because I had already put this in...I just did a diff though and realised
I had forgotten to commit the template file. That's done now, and it should be
displaying the correct behaviour
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2) the composite Key_Value_String / Key_Value_Int causes a serious
performance issue.
It preloads every Value for every key.. so the following code took over
2 minutes on my laptop..
@classmethod
def get_all_keys(cls):
all_keys = cls.query()
return [key.key_name for key in all_keys]
I looked to see if there was some way to delay the loading but I
couldn't find any. Can you make the code work without the composite?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Hmm, possibly I can get it to work without the composite. I'm not sure exactly how,
but either way, we can't live with that kind of performance hit.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
p.s. - reply to the beaker-devel list.. I'm trying to keep all
communication on the list. :-)
Show replies by thread