vadvs (vadvs) wrote in changelog,

[livejournal] r17566: LJSUP-7150: add comment about "init_como...

Committer: vsukhanov
LJSUP-7150: add comment about "init_comobj" param
U   trunk/cgi-bin/LJ/
Modified: trunk/cgi-bin/LJ/
--- trunk/cgi-bin/LJ/	2010-10-14 07:26:22 UTC (rev 17565)
+++ trunk/cgi-bin/LJ/	2010-10-14 07:48:02 UTC (rev 17566)
@@ -1071,6 +1071,11 @@
 #   userpicref -- hashref to load userpics into, or undef to
 #                 not load them.
 #   userref -- hashref to load users into, keyed by userid
+#   init_comobj -- init or not LJ::Comment object for every loaded raw data of a comment.
+#                  by default it is On (true), but in this case it produces a huge overhead:
+#                       LJ::Comment class stores in memory all comment instances and when load 
+#                       property for any of a comment LJ::Comment loads all properties for ALL inited comments.
+#                  (!) provide 'init_comobj => 0' wherever it is possible
 # returns:
 #   array of hashrefs containing keys:

Tags: livejournal, pm, vadvs

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded