Login   Register  
PHP Classes
elePHPant
Icontem

thanks for article on ORM!

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      PHP Classes blog  >  PHP Object-Relational...  >  All threads  >  thanks for article on ORM!  >  (Un) Subscribe thread alerts  
Subject:thanks for article on ORM!
Summary:your ORM summary helps me understand SQL type databases -finally
Messages:4
Author:Greg
Date:2008-10-14 17:58:33
Update:2008-10-15 22:15:03
 

  1. thanks for article on ORM!   Reply   Report abuse  
Picture of Greg
Greg
2008-10-14 18:55:49
Thank you for your clear presentation on PHP ORM! I'm new to PHP and have been trying to work with text-file based database systems to avoid learning the strange language requirements of SQL type programs. I've understood the basics of relational databases compared to hierarchical, but you really communicated the issues in a manner that made it easy for me to visualize and grasp. I even have hopes of using your information to make a flat file database system with complexity levels only as much as needed.

Are there any real world issues that make use of SQL type databases imperative compared to flat file systems? Aren't XML and even SQL databases just flat data tables at their core?

thanks,

Greg

  2. Re: thanks for article on ORM!   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2008-10-14 20:21:46 - In reply to message 1 from Greg
Flat file database systems are usually not client-server database systems. Usually only one process can change a database table at a time. So, they are more adequate for read-only applications or applications without many concurrent accesses.

SQLite is a flat file database system that provides SQL access support. It is not a client-server system, so it has problems under other situations besides those I mentioned above.

Other than the storage system used by each database system may be similar or not.

  3. Re: thanks for article on ORM!   Reply   Report abuse  
Picture of Greg
Greg
2008-10-15 22:09:45 - In reply to message 2 from Manuel Lemos
Thanks again!

I'm getting the idea now, about how SQL databases must use traffic control programming for sites/servers with many users performing live searches.

I'm running a site that re-uses and adds layout to movie event information from a few sites, which changes daily. We target a special-needs market, and plan website layout to be easily accessible - including a great deal of "pre-sorted" information. This operation seems to match the low-traffic, and infrequent searching functions you've noted for flat-file databases. The multi-megabit memory requirements and large user manuals associated with databases scared me away from their use. I've been pleased to see the flat file database tools in PHP with some javascript range in size from 60k to a few hundred k in size - much less intimidating to me.

Regarding other common use of SQL type databases - I'm surprised that Blogs have become so popular, considering their dependence on SQL type database use. I'm assuming most users have had to invest time in learning and accommodating the hardware and software memory requirements for SQL. I was happy to discover a flat-file blogging script, and ScribeFire extension for FireFox - making in-browser, fast posting to many blog types easier.

Thanks Manuel. Your clear mastery of this subject matter would be great to see in books by O'Reilly. You make it more comprehensible to this web publisher who prefers WYSIWYG tools to coding, but who has tried to learn about and appreciate PHP and javascript as ways to automate and improve the work process.

Greg
deafaccessfilms.com

  4. Re: thanks for article on ORM!   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2008-10-15 22:15:03 - In reply to message 3 from Greg
Any content site, like blogs and others that do not change too frequently, use content caching techniques to avoid database accesses as much as possible, or else the hardware cost would be to expensive to handle high traffic.

The PHPClasses site uses file based caching extensively. You may read more about that in this other article:

http://www.phpclasses.org/blog/post/66-More-defensive-progra ...