[LON-CAPA-dev] caching

Matthew Brian Hall lon-capa-dev@mail.lon-capa.org
Wed, 5 Mar 2003 09:31:36 -0500 (EST)


At the meeting I mentioned the ineffectiveness of the caching mechanism
we were using.  The scheme was to have one file for each course and that
would hold all the data for all the students.  The new scheme is to have
one file per student.  Here are some of the numbers from the test:

These statistics are from a class with 400 students and about 150 out of 240
homework problems having been completed.

         Initial storage and chart computation        Redisplay (use cache)
old:       272 sec                                      580
new:       202 sec                                       20

It looks like this new method is the way to go :)

Matthew

--
------------------------------------------------------------------
Matthew Hall           LON-CAPA developer         hallmat3@msu.edu
123 North Kedzie Hall                    Michigan State University
------------------------------------------------------------------