[Zope] Are Lookups via DTML methods efficient?
by Jonathan Mark other posts by this author
Dec 30 2002 5:43PM messages near this date
RE: [Zope] Change current path in External Method
|
Re: [Zope] Are Lookups via DTML methods efficient?
I have a list of easy-to-remember website names, and
hard-to-remember URLs. My goal is that when coding my
Zope site using DTML I should be able to refer to a
URL by its easy-to-remember website name.
I am thinking of creating a near-identical group of
DTML methods whose IDs are the website names and whose
titles are the URLs.
Each method would then return its own title.
Is this approach efficient? I could call a SQL
database instead, but I think that would be overkill
in this case. Also, opening up a connection for this
simple information might not be efficient either.
Should I use a field index on a catalogue instead?
Each website name would only have a single URL, so the
search would only return a single value.
Could there be an XML approach which might work well?
Ultimately I could have hundreds of URLs that I want
to call by website name.
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
Zope maillist - Zope@[...].org
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
Thread:
Jonathan Mark
Dieter Maurer
|