Hi all, I am starting to design a web app, which will have a database consisting of 5000 to 10000 restaurants, which could potentially grow, but not much more. I'm a newbye to Zope,and initially my idea was to keep all the data in a MySQL DB, and access it from Zope. I need to do some very flexible queries and searches on the DB, and I've found that Z SQL Methods get quite awkward easily. I am thinking now about a pure-Zope (ZOBD) solution. I have thought about using a ZClass for each restaurant and keeping them organized in directories with the next hierarchy: County/City/Restaurant Is this a reasonable idea at all to do? I can write Python, and would like to avoid DTML for non-presentation tasks as much as possible. Also, I would need to be able to do queries of the style "give me restaurants that sell chinese food anywhere in this region/city". I appreciate any recommendation or resource that can help me make a good decision. TIA, Arkaitz.
One thing I highly recommend is not using zclasses. Learn enough of python products to do a restaurant as a python product. Long term they are more maintainable and more reliable from my experience. I have not been happy with zclasses for many reasons. With the kind of load you will have a python product will probably be best. On 5 May 2001, Arkaitz wrote:
Hi all,
I am starting to design a web app, which will have a database consisting of 5000 to 10000 restaurants, which could potentially grow, but not much more. I'm a newbye to Zope,and initially my idea was to keep all the data in a MySQL DB, and access it from Zope. I need to do some very flexible queries and searches on the DB, and I've found that Z SQL Methods get quite awkward easily. I am thinking now about a pure-Zope (ZOBD) solution. I have thought about using a ZClass for each restaurant and keeping them organized in directories with the next hierarchy: County/City/Restaurant Is this a reasonable idea at all to do? I can write Python, and would like to avoid DTML for non-presentation tasks as much as possible. Also, I would need to be able to do queries of the style "give me restaurants that sell chinese food anywhere in this region/city".
I appreciate any recommendation or resource that can help me make a good decision.
TIA, Arkaitz.
_______________________________________________ Zope maillist - Zope@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 )
--- One thing I highly recommend is not using zclasses. Learn enough of python products to do a restaurant as a python product. Long term they are more maintainable and more reliable from my experience. I have not been happy with zclasses for many reasons. With the kind of load you will have a python product will probably be best. --- could you elaborate more on that by giving the reasons why not to use zclasses in some/all situations ? thanx, $ven
One thing I have noticed problems with is that I have had zclasses break more then a few times. Once that happens it does not seem that they can be fixed. Often I have seen situations where all instances were broken but new ones could be created with no problems. I have not ever seen that behavior with a python product. Another issue is that zclasses can not be easily reclassed or expanded later like a python product can. If you decide later that your object should have been catalog aware you are in trouble because it can't just be reclassed. ZClasses strike me as a testing type idea wheren you quickly prototype something then write it in a python product. However once you know python well enough it is faster to write it in python then to work with a ZClass. On Sat, 5 May 2001, Sven Fischer wrote:
--- One thing I highly recommend is not using zclasses. Learn enough of python products to do a restaurant as a python product. Long term they are more maintainable and more reliable from my experience. I have not been happy with zclasses for many reasons. With the kind of load you will have a python product will probably be best. ---
could you elaborate more on that by giving the reasons why not to use zclasses in some/all situations ?
thanx,
$ven
participants (3)
-
Arkaitz -
kosh@aesaeion.com -
Sven Fischer