J1m | well, they don't | 00:00 |
---|---|---|
srichter | ok, I ran them last week | 00:00 |
srichter | probably something changed, which I did not think about | 00:00 |
srichter | I am running them now | 00:00 |
J1m | http://buildbot.zope.org:8002/ | 00:01 |
srichter | I am running them | 00:01 |
*** efrerich_ has quit IRC | 00:03 | |
*** jinty has quit IRC | 00:03 | |
*** pcardune has quit IRC | 00:04 | |
*** benji has quit IRC | 00:05 | |
*** alga has joined #zope3-dev | 00:06 | |
*** jhauser_ has quit IRC | 00:50 | |
*** philiKON has quit IRC | 00:59 | |
*** zbir` has quit IRC | 00:59 | |
*** philiKON has joined #zope3-dev | 01:05 | |
*** sashav has quit IRC | 01:13 | |
*** mgedmin has quit IRC | 01:13 | |
*** mgedmin has joined #zope3-dev | 01:31 | |
*** mgedmin has quit IRC | 01:35 | |
*** roym has quit IRC | 01:45 | |
*** mp_ has quit IRC | 02:39 | |
*** philiKON has quit IRC | 02:43 | |
*** mp has joined #zope3-dev | 02:43 | |
*** zbir` has joined #zope3-dev | 03:05 | |
*** projekt01 has quit IRC | 03:07 | |
*** tarek has quit IRC | 03:22 | |
*** tarek has joined #zope3-dev | 03:25 | |
*** yota has quit IRC | 03:59 | |
*** natea has quit IRC | 04:43 | |
*** tarek has quit IRC | 04:54 | |
*** alga has quit IRC | 05:57 | |
*** xenru|clone has joined #zope3-dev | 06:07 | |
*** xenru has quit IRC | 06:11 | |
*** retsu has quit IRC | 06:21 | |
*** natea has joined #zope3-dev | 07:06 | |
*** cursor has joined #zope3-dev | 07:12 | |
*** cursor has quit IRC | 07:13 | |
*** retsu has joined #zope3-dev | 07:20 | |
*** dobee has joined #zope3-dev | 07:44 | |
*** xenru|clone has quit IRC | 08:10 | |
*** dobee has quit IRC | 08:15 | |
*** eins has joined #zope3-dev | 08:22 | |
eins | hi | 08:22 |
*** retsu has quit IRC | 08:27 | |
*** dobee has joined #zope3-dev | 08:33 | |
*** sashav has joined #zope3-dev | 08:37 | |
*** bobessutio has joined #zope3-dev | 08:46 | |
*** sashav has quit IRC | 08:50 | |
*** Aiste has quit IRC | 09:10 | |
*** zagy has joined #zope3-dev | 09:14 | |
*** jhauser has joined #zope3-dev | 09:29 | |
*** MJ has quit IRC | 09:35 | |
*** natea has quit IRC | 09:37 | |
*** cursor has joined #zope3-dev | 10:19 | |
*** agroszer has joined #zope3-dev | 10:27 | |
*** j-w has joined #zope3-dev | 10:29 | |
*** bobessutio has quit IRC | 10:31 | |
*** sashav has joined #zope3-dev | 10:32 | |
*** efrerich has joined #zope3-dev | 10:33 | |
*** rom|aw is now known as romanofski | 10:34 | |
romanofski | moin | 10:34 |
efrerich | moin | 10:42 |
*** MJ has joined #zope3-dev | 10:42 | |
*** sashav has quit IRC | 10:58 | |
*** sashav has joined #zope3-dev | 11:01 | |
*** sashav_ has joined #zope3-dev | 11:01 | |
*** sashav has quit IRC | 11:02 | |
*** sashav_ is now known as sashav | 11:02 | |
*** efrerich has quit IRC | 11:04 | |
*** sashav has joined #zope3-dev | 11:08 | |
*** tarek has joined #zope3-dev | 11:09 | |
*** andrew_m has left #zope3-dev | 11:10 | |
*** sashav has joined #zope3-dev | 11:20 | |
*** sashav_ has joined #zope3-dev | 11:27 | |
*** sashav has quit IRC | 11:27 | |
*** sashav_ is now known as sashav | 11:27 | |
*** encolpe has joined #zope3-dev | 11:28 | |
encolpe | Hi | 11:28 |
*** sashav_ has joined #zope3-dev | 11:31 | |
*** sashav has quit IRC | 11:31 | |
*** sashav_ is now known as sashav | 11:31 | |
*** andres has joined #zope3-dev | 11:36 | |
*** yota has joined #zope3-dev | 11:49 | |
eins | romanofski hi | 12:09 |
romanofski | hi eins :) | 12:13 |
*** tarek has quit IRC | 12:28 | |
*** tarek has joined #zope3-dev | 12:30 | |
*** retsu has joined #zope3-dev | 12:31 | |
*** mgedmin has joined #zope3-dev | 12:43 | |
*** sashav has quit IRC | 13:02 | |
*** mkerrin has joined #zope3-dev | 13:03 | |
*** mkerrin has quit IRC | 13:06 | |
*** jenner has quit IRC | 13:14 | |
*** projekt01 has joined #zope3-dev | 13:14 | |
*** sashav has joined #zope3-dev | 13:15 | |
*** ignas has joined #zope3-dev | 13:18 | |
*** andres_ has joined #zope3-dev | 13:19 | |
*** sashav has quit IRC | 13:20 | |
*** mkerrin has joined #zope3-dev | 13:27 | |
*** sashav_ has joined #zope3-dev | 13:32 | |
*** sashav_ is now known as sashav | 13:32 | |
*** andres has quit IRC | 13:36 | |
*** andres__ has joined #zope3-dev | 13:45 | |
*** AJC has joined #zope3-dev | 13:48 | |
*** Aiste has joined #zope3-dev | 13:59 | |
*** andres_ has quit IRC | 14:01 | |
*** zagy has quit IRC | 14:04 | |
AJC | what is z3lab powered by? | 14:10 |
AJC | i mean the blogs, etc. | 14:10 |
*** zmi_junkie has joined #zope3-dev | 14:12 | |
*** retsu has quit IRC | 14:14 | |
*** MJ has quit IRC | 14:17 | |
*** MJ has joined #zope3-dev | 14:22 | |
*** zagy has joined #zope3-dev | 14:24 | |
*** jinty has joined #zope3-dev | 14:26 | |
yota | AJC: CPS | 14:28 |
d2m | AJC: heres the source http://svn.z3lab.org/trac/z3lab/browser/Z3LabSite/trunk/ | 14:28 |
*** MJ has joined #zope3-dev | 14:30 | |
eins | is there any way to track security errors? | 14:41 |
romanofski | yeah - the debug skin show you security errors | 14:43 |
eins | mmm I'm using my own skin | 14:47 |
romanofski | you can include the debug skin in yours | 14:48 |
romanofski | actually I'm not sure if I'm using the correct term here... probably I'm talking about a skin layer | 14:49 |
eins | thanks, good idea actually:) | 14:50 |
*** zmi_junkie has quit IRC | 14:54 | |
AJC | thanks d2m, yota... i'll take a look. | 14:55 |
*** retsu has joined #zope3-dev | 14:57 | |
*** alga has joined #zope3-dev | 14:58 | |
*** tonico has quit IRC | 14:58 | |
*** cursor has quit IRC | 15:02 | |
*** zbir` has quit IRC | 15:05 | |
*** tonico has joined #zope3-dev | 15:07 | |
*** tonico has quit IRC | 15:14 | |
*** cursor has joined #zope3-dev | 15:31 | |
*** andres__ is now known as andres | 15:37 | |
*** fluff has joined #zope3-dev | 15:38 | |
andres | jinty, bha, sqlobject is slow. It takes ages to create 15000 objects... | 15:38 |
*** _anguenot has joined #zope3-dev | 15:45 | |
andres | or hm, its not taking ages. Its shorter than i thought. 3s on the first creation 1.5 afterwards (out of cache). The slow thing is to render the Set as it seems... | 15:47 |
jinty | andres: ha, a case of "it's SQL, it must be the slow part!" | 15:51 |
andres | jinty, no, i thought the object creation would be the expensive part. | 15:52 |
jinty | andres: ok, nice to know anyway (the fast part I mean). | 15:55 |
andres | jinty, well it could be faster ;-) | 15:55 |
encolpe | srichter: Simon Doesn't remember if he can commit in Zope3 for the i18nextract patch | 15:58 |
srichter | encolpe: ok | 15:58 |
srichter | encolpe: I already did the merge (needed some test fixes as well), and I'll refer to his site that agreed to publish the code under ZPL | 15:59 |
*** zmi_junkie has joined #zope3-dev | 16:07 | |
encolpe | Ok | 16:08 |
*** zbir has joined #zope3-dev | 16:14 | |
*** projekt01 has quit IRC | 16:14 | |
andres | jinty, others, any idea, my speed problems boil down to this: If i create a new container and iterate over its contents, its fast. If i get an existing container out of zodb its slow. 1.8s vs 28s | 16:35 |
andres | As the contents come out of an sql database they have exactly the same content. | 16:35 |
andres | Thats seems very strange to me. | 16:36 |
andres | Hm, the securityProxy causes this. | 16:39 |
andres | I knew, that security is expensive, but THAT expensive... | 16:40 |
srichter | it sounds very strage to me that security would be that expensive | 16:42 |
srichter | it certainly is alarming | 16:43 |
srichter | it would be good to report your findings at zope3-dev | 16:43 |
*** sm has joined #zope3-dev | 16:45 | |
andres | srichter, well, that are 15000 elements, so its somewhat understandeable. | 16:46 |
andres | for each of them 3 attributes needs to be checked. | 16:47 |
andres | so its 45000 security checks. | 16:47 |
srichter | ok | 16:47 |
andres | plus for each container access one. | 16:47 |
srichter | right | 16:47 |
srichter | still, maybe we should create a security cache or something | 16:48 |
andres | srichter, whats more expensive, a security check or putting an object into an security Proxy? | 16:49 |
srichter | no clue | 16:53 |
srichter | I am not a security expert | 16:53 |
andres | srichter, thats J1m? | 16:53 |
*** tonico has joined #zope3-dev | 16:53 | |
srichter | yep :-) | 16:54 |
srichter | or Theuni | 16:54 |
Theuni | huh? | 16:59 |
* Theuni reads | 17:00 | |
SteveA | why are you doing 45000 security checks? | 17:00 |
SteveA | does each check involve a database query? | 17:00 |
*** GaryPoster has joined #zope3-dev | 17:00 | |
SteveA | why do you iterate over 15000 elements of anything on a single page? | 17:00 |
J1m | Note that the security policy is already doing quite a bit of caching. | 17:01 |
J1m | Of course security checks are somewhat expensive. | 17:02 |
andres | SteveA, because there are 15000 objects displayed on a site. | 17:02 |
SteveA | you may want to tell sqlobject to bring in the attributes you use for security checking as part of the default query for that row | 17:02 |
J1m | For normal applications, they aren't dominant. | 17:02 |
*** zagy has quit IRC | 17:02 | |
andres | SteveA, there are no sql queries done in that time. | 17:02 |
andres | SteveA, its just security out of zcml. | 17:03 |
SteveA | so, if you set the security to zope.Public...# | 17:07 |
SteveA | does it take about 0 time? | 17:07 |
*** dman13 has quit IRC | 17:08 | |
andres | SteveA, hm, even if i set it to zope.Public, there will be a check, or? | 17:08 |
SteveA | zope.Public is special. it makes a shortcut to avoid the checks. | 17:09 |
*** jinty has quit IRC | 17:11 | |
andres | SteveA, its still a bit slower than without securityProxy but way faster than with real permissions. | 17:12 |
SteveA | so this tells you that most of the time is spend in deciding whether a permission is allowed for a particular object | 17:14 |
SteveA | and the rest of the security infrastructure, such as putting the content objects inside proxies, and accessing them, doesn't take so much time | 17:14 |
andres | SteveA, yes, but its plain zcml security for now. So its just getting worse in future :-( | 17:16 |
SteveA | i'm not sure what you mean by "plain zcml security" | 17:17 |
SteveA | in zcml, you can say that particular attribute names require certain permissions in order to be accessed | 17:17 |
andres | i mean, that everything is defined in zcml and not retrieved for example out of a sql database. | 17:18 |
SteveA | to see if the current user has a given permission, the security authorization policy looks to see what the current principal is (the current logged in user), and asks what grants that principal has. | 17:18 |
SteveA | it is not common to want to deal with 15000 objects all at once with zope3. so, i expect you can do some special things with your design or security to make the security better for your particular case. For example, perhaps you can render this 15000 objects page based not on the "real" objects, but instead on stub objects with zope.Public security | 17:21 |
*** efrerich has joined #zope3-dev | 17:21 | |
*** mgedmin has quit IRC | 17:25 | |
andres | SteveA, well, i will have to do something... Then problem is that i have to check if people have access to certain objects, but as security should be in the sql database anyway (or better said, is, but just ignored for now) i will do it directly i think. | 17:25 |
*** mcdonc has joined #zope3-dev | 17:27 | |
andres | with directly i mean in the query. | 17:28 |
andres | For now i will just remove the Security Proxy. | 17:28 |
andres | Stupid Question: After removing a proxy from a container no object out of that container is in a proxy. How can i put them into a Proxy again/How to i get the checker for that? | 17:37 |
J1m | zope.security.checker.ProxyFactory(ob) | 17:40 |
*** benji has joined #zope3-dev | 17:41 | |
andres | j-w, thanks. | 17:41 |
andres | J1m, i mean. | 17:41 |
*** jhauser_ has joined #zope3-dev | 17:44 | |
*** eins has quit IRC | 17:50 | |
*** jhauser has quit IRC | 17:58 | |
*** ignas has quit IRC | 17:59 | |
*** natea has joined #zope3-dev | 18:07 | |
*** Theuni has quit IRC | 18:09 | |
*** sashav has quit IRC | 18:24 | |
*** AJC has quit IRC | 18:27 | |
*** MJ has quit IRC | 18:33 | |
*** encolpe has quit IRC | 18:34 | |
*** fluff has quit IRC | 18:36 | |
*** MacYET has joined #zope3-dev | 18:47 | |
MacYET | happy new year | 18:48 |
benji | Happy New Year to you too, MacYET | 18:50 |
*** tonico has quit IRC | 18:51 | |
*** MacYET has quit IRC | 18:52 | |
*** sm has quit IRC | 18:52 | |
*** tonico has joined #zope3-dev | 18:55 | |
*** mgedmin has joined #zope3-dev | 18:57 | |
* benji is away: I'm busy | 18:57 | |
*** dobee has quit IRC | 18:58 | |
*** philiKON has joined #zope3-dev | 19:04 | |
*** MacYET has joined #zope3-dev | 19:05 | |
*** MJ has joined #zope3-dev | 19:05 | |
*** efge has joined #zope3-dev | 19:12 | |
*** MJ has quit IRC | 19:27 | |
*** philiKON has left #zope3-dev | 19:30 | |
*** philiKON has joined #zope3-dev | 19:30 | |
*** j-w has quit IRC | 19:31 | |
*** MacYET has left #zope3-dev | 19:36 | |
*** mcdonc has quit IRC | 19:51 | |
*** MJ has joined #zope3-dev | 19:52 | |
*** efge has quit IRC | 20:11 | |
*** MJ has quit IRC | 20:17 | |
*** MJ has joined #zope3-dev | 20:31 | |
*** jbb666 has quit IRC | 20:42 | |
*** jbb666 has joined #zope3-dev | 20:43 | |
*** sashav has joined #zope3-dev | 20:45 | |
*** sashav has quit IRC | 20:45 | |
*** jinty has joined #zope3-dev | 20:49 | |
*** sashav has joined #zope3-dev | 20:51 | |
*** romanofski is now known as rom|aw | 20:58 | |
*** mleist has quit IRC | 21:25 | |
*** _anguenot has quit IRC | 21:36 | |
*** cursor has quit IRC | 21:42 | |
*** agroszer has quit IRC | 21:48 | |
*** jhauser_ has quit IRC | 22:07 | |
*** jbb666 has quit IRC | 22:22 | |
*** jbb666 has joined #zope3-dev | 22:24 | |
*** andres has quit IRC | 22:29 | |
*** efrerich_ has joined #zope3-dev | 22:29 | |
*** efrerich has quit IRC | 22:46 | |
*** mgedmin has quit IRC | 22:47 | |
*** yota has quit IRC | 22:58 | |
*** yota has joined #zope3-dev | 22:59 | |
*** mkerrin has quit IRC | 23:00 | |
*** sashav_ has joined #zope3-dev | 23:15 | |
*** sashav has quit IRC | 23:15 | |
*** sashav_ is now known as sashav | 23:15 | |
*** Theuni has joined #zope3-dev | 23:17 | |
*** rom|aw has quit IRC | 23:23 | |
*** _anguenot has joined #zope3-dev | 23:24 | |
*** jinty has quit IRC | 23:40 | |
*** efrerich_ has quit IRC | 23:41 | |
*** alga has quit IRC | 23:43 | |
*** Theuni has quit IRC | 23:47 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!