Re: Seaside design issue
Annick Fron <[email protected]> Thu, 31 Aug 2023 14:25:17 +0200
| Newsgroups | gmane.comp.lang.smalltalk.squeak.seaside |
|---|---|
| Message-ID | <[email protected]> |
--===============5737324096651427460== Content-Type: multipart/alternative; boundary="Apple-Mail=_8D6D4CC3-F1CE-4C90-8D93-E8F4BB240894" --Apple-Mail=_8D6D4CC3-F1CE-4C90-8D93-E8F4BB240894 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Esteban, Thank you for your answer, I will try profiling. My issue is that my database access is frozen from time to time, = and I am trying to understand what is going on. There might be a lot of = possibilities, including hacks on my database. Annick > Le 31 ao=C3=BBt 2023 =C3=A0 14:07, Esteban Maringolo = <[email protected]> a =C3=A9crit : >=20 > Hi Annick, >=20 > Either if you create a component that renders an anchor with a = callback for each object or if you render a list or a table full with a = callback to each of them, all these callbacks are going to be added to = the callback registry (WACallbackRegistry). >=20 > Depending on how you architecture your app (more or less AJAX = oriented) you could use something like JS's #callback:passenger: helper = method. But if your purpose is to drive a full page call/answer: then = AJAX would not be an option there. >=20 > As for leaking callbacks, have you found any or profiled the memory to = confirm that it is leaking somewhere? >=20 > Best regards, >=20 > Esteban A. Maringolo >=20 >=20 > On Thu, Aug 31, 2023 at 7:19=E2=80=AFAM Annick Fron = <[email protected] <mailto:[email protected]>> wrote: >> Hi, >>=20 >> I use tables with items and use anchors for item lines to = perform some particular action on an item. This action is for instance = to call a specific component on that item. >>=20 >> If I have numerous items, I am worried about the number of = callbacks piling in and not being garbaged. >>=20 >> Is it preferable to create a component per item holding only = one callback ? >>=20 >> Annick >> _______________________________________________ >> seaside mailing list -- [email protected] = <mailto:[email protected]> >> To unsubscribe send an email to = [email protected] = <mailto:[email protected]> > _______________________________________________ > seaside mailing list -- [email protected] > To unsubscribe send an email to = [email protected] --Apple-Mail=_8D6D4CC3-F1CE-4C90-8D93-E8F4BB240894 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"content-type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"overflow-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;">Hi = Esteban,<div><br></div><div><span class=3D"Apple-tab-span" = style=3D"white-space:pre"> </span>Thank you for your answer, I will = try profiling.</div><div><br></div><div><span class=3D"Apple-tab-span" = style=3D"white-space:pre"> </span>My issue is that my database = access is frozen from time to time, and I am trying to understand what = is going on. There might be a lot of possibilities, including hacks on = my database.</div><div><br></div><div><span class=3D"Apple-tab-span" = style=3D"white-space:pre"> = </span>Annick<br><div><div><br><blockquote type=3D"cite"><div>Le 31 = ao=C3=BBt 2023 =C3=A0 14:07, Esteban Maringolo = <[email protected]> a =C3=A9crit :</div><br = class=3D"Apple-interchange-newline"><div><div dir=3D"ltr"><div>Hi = Annick,</div><div><br></div><div>Either if you create a component that = renders an anchor with a callback for each object or if you render a = list or a table full with a callback to each of them, all these = callbacks are going to be added to the callback registry = (WACallbackRegistry).</div><div><br></div><div>Depending on how you = architecture your app (more or less AJAX oriented) you could use = something like JS's #callback:passenger: helper method. But if your = purpose is to drive a full page call/answer: then AJAX would not be an = option there.</div><div><br></div><div>As for leaking callbacks, have = you found any or profiled the memory to confirm that it is leaking = somewhere?</div><div><br></div><div>Best regards,</div><br = clear=3D"all"><div><div dir=3D"ltr" class=3D"gmail_signature" = data-smartmail=3D"gmail_signature">Esteban A. = Maringolo</div></div><br></div><br><div class=3D"gmail_quote"><div = dir=3D"ltr" class=3D"gmail_attr">On Thu, Aug 31, 2023 at 7:19=E2=80=AFAM = Annick Fron <<a = href=3D"mailto:[email protected]">[email protected]</a>> = wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px = 0px 0px 0.8ex;border-left:1px solid = rgb(204,204,204);padding-left:1ex">Hi,<br> <br> I use tables with items and use anchors for = item lines to perform some particular action on an item. This action is = for instance to call a specific component on that item.<br> <br> If I have numerous items, I am worried about = the number of callbacks piling in and not being garbaged.<br> <br> Is it preferable to create a component per = item holding only one callback ?<br> <br> Annick<br> _______________________________________________<br> seaside mailing list -- <a = href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a><br> To unsubscribe send an email to <a = href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a><br> </blockquote></div> _______________________________________________<br>seaside mailing list = -- [email protected]<br>To unsubscribe send an email to = [email protected]<br></div></blockquote></div><br><= /div></div></body></html>= --Apple-Mail=_8D6D4CC3-F1CE-4C90-8D93-E8F4BB240894-- --===============5737324096651427460== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ seaside mailing list -- [email protected] To unsubscribe send an email to [email protected] --===============5737324096651427460==--