Forum OpenACS Q&A: Re: universal way of displaying lists of objects needed

Collapse
Posted by Peter Marklund on
Timo,
great to hear that you are back doing OpenACS development! I have a couple of questions:
  • Do you have a spec for the categorization package that you can share? How will it differ from the one you and I wrote in Munich for aD? For reference, the old categorization package can be found this thread.
  • Which object types do you plan to be browsing?
  • Would it be feasible to convert the object types that you need to using the CR?
  • Is it established that acs_object.name is too slow? Can you try the new categorization package and alternate between using a name column and the plsql proc and see what the difference is in response time?
My basic feeling right now (not having followed this discussion in great detail) is that name and package_id columns would make sense to add to the acs_objects table, or in a separate table as proposed here.
Collapse
Posted by Timo Hentschel on
Hi Peter!

Yeah... I'm back! To be honest, i don't really remember the old categorization system too well. Can you provide a link to a demo system where i can have quick look? The links you provided in your old posting aren't working any longer....

To answer your question regarding acs_object.name: Yes, i am sure that acs_object.name just has to be slow if used displaying a list of objects. Why? Well, if you think about it, it just has to be slow to have to invoke this proc for every single object whose name you want to display in an object list, because this proc itself will execute a few queries to get the correct name. If you compare this with an approach in which you just have one single query to get the objects together with their names out of a table then you don't need to set up a test system to compare speed because it's evident that the second approach has to be way way faster than the first one. In my opinion query speed is the topmost design-criteria overruling every other criteria possible, so therefore i see it as established that acs_object.name could be used to get the name of one or some few objects, but for displaying an object list my proposal for a table like acs_objects_description is the better since faster solution.