This discussion is beginning to sound like "when I was young we had to ski to school 30 kilometers a day all winter and summer long"... :)
You could just as well say that RedBeanPHP is for people who don't care about proper DB designs, and that using it very easily leads to unconscious decisions that result in code that generates 100x more queries that would be needed if you wrote every query by hand. Still its benefits far outweigh the problems.
It's not a tool that is supposed to handle and solve complex database administration problems - instead I see it as a handy toolkit for the solo programmer-dba who has to persist some fairly simple data somewhere
If it could additionally provide some optional features for optimization (like it currently does with the preload method), even if they're not perfect, why not?
Still, if you approach the problem from a more traditional sense that programming and database administration should be kept separate and preferably done by different people, defining indexes has no place in code - but that's just as true for creating the database tables.
Or if you view the fluid mode only as a prototyping tool, why not use it for prototyping indexing as well? I may be wrong but in the real world of PHP development the percentage of developers who have a full-time database administrator in their team - or who just happen to be an expert in the field themselves - is pretty low.
Most of the data stored and read by RedBeanPHP is pretty simple and straightforward, and I would bet that most of the indexing scenarios would be as well.
Of course as a programmer you have to start by looking at the worst case scenario and start working from there, but I think that if you dismiss the idea based on the premise that "it could be used wrong" you're throwing the baby out with the bath water.
Marko
--
You received this message because you are subscribed to the Google Groups "redbeanphp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redbeanorm+...@googlegroups.com.
To post to this group, send email to redbe...@googlegroups.com.
Visit this group at http://groups.google.com/group/redbeanorm.
For more options, visit https://groups.google.com/groups/opt_out.