Jump to content


Photo

what the reason using redbean?

redbean db

  • Please log in to reply
12 replies to this topic

#1 rakesh007

rakesh007

    Member

  • Members
  • PipPip
  • 17 posts

Posted 25 November 2011 - 05:59 AM

Hi
i read article for Active Record database on Yii framework
http://www.yiiframew...tabase.overview
its say that its work fast and secure.

then what is the reason to use redbean with Yii ?
anyone know what is advantages of readbean over Yii?


thanks

#2 Jason

Jason

    Administrator

  • Administrators
  • 716 posts
  • LocationChicago

Posted 27 November 2011 - 06:33 PM

Rakesh,
We chose RedBeanPHP because we felt it was a better solution for our ORM needs. It has 2 modes, frozen and unfrozen which allow easy development without having to worry about the schema. Also, we have added an auto-build functionality for the database schema so that you don't have to worry about how the schema is constructed. We also like how it keeps the beans decoupled from the models in the application.

Jason Green
Zurmo Team
Need support? Upgrade now


#3 rakesh007

rakesh007

    Member

  • Members
  • PipPip
  • 17 posts

Posted 29 November 2011 - 01:34 PM

thanks Jason

#4 justflyingby

justflyingby

    Newbie

  • Members
  • Pip
  • 8 posts

Posted 19 December 2011 - 07:06 PM

But how would I get the actual schema? and what requirements in architecture forces to use frozen and unfrozen modes?

#5 Jason

Jason

    Administrator

  • Administrators
  • 716 posts
  • LocationChicago

Posted 19 December 2011 - 08:07 PM

The database schema is almost 100% decoupled from the application. The models in Zurmo define metadata that the RedBeanModel and RedBeanPHP utilize to automatically make the schema. After you install the application you can change in debug.php to $forceNoFreeze = true, if you want to make it not frozen. This will allow you develop without having to run the updateSchemaCommand to change the schema. During normal production, it would remain frozen.

Also this article might be helpful in getting started:
http://zurmo.org/tut...tests-explained

Thanks for your suggestion regarding a diagram. I will need to get that put together when I have time.

Jason Green
Zurmo Team
Need support? Upgrade now


#6 Crisu83

Crisu83

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 28 April 2012 - 01:18 PM

Did you also consider using Doctrine2?

The reason why I'm asking is because I'm in the process of testing Doctrine2 in Yii and I will possibly create an extension for integrating Doctrine2. I'm not really satisfied with Yii ORM so I'm looking for the best alternative.

The extension could provide similar functionality as Yii ORM plus all the Doctrine2 console commands (e.g. database migration).

#7 binkabir

binkabir

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 29 April 2012 - 04:29 PM

that will be a great extension. but from the look of things yii 2.0 ORM will be promising, because from a post i read i saw that the ORM implementation look so much like redBeanPHP

#8 Ivica

Ivica

    Advanced Member

  • Moderators
  • 478 posts

Posted 30 April 2012 - 12:55 PM

Did you also consider using Doctrine2?

The reason why I'm asking is because I'm in the process of testing Doctrine2 in Yii and I will possibly create an extension for integrating Doctrine2. I'm not really satisfied with Yii ORM so I'm looking for the best alternative.

The extension could provide similar functionality as Yii ORM plus all the Doctrine2 console commands (e.g. database migration).

@Chris83: Welcome to Zurmo forum.
Yes we considered Doctrine2 and other ORM systems, but we was looking for simple and fast ORM system, and RedBeanPHP had all features we required. RedBeanPHP is also more lightweight.
Big advantage of RedBeanPHP is because you can switch it between development mode, so while in development mode, database scheme is fluid(and off course very slow), but once development is done, we can freeze database, and it that case it perform very fast.

#9 ctala

ctala

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 10 July 2012 - 07:13 PM

I had the same question as Rakesh, actually I can undersatnd better why you are using redbean now.

But I still have a question. I can not see any relations in the database, so we are using a relational database without relations. I know that maybe redbean can do it on his own, but I still have the feeling that is something missing.

#10 Jason

Jason

    Administrator

  • Administrators
  • 716 posts
  • LocationChicago

Posted 10 July 2012 - 08:08 PM

I had the same question as Rakesh, actually I can undersatnd better why you are using redbean now.

But I still have a question. I can not see any relations in the database, so we are using a relational database without relations. I know that maybe redbean can do it on his own, but I still have the feeling that is something missing.

What relationship are you looking for?

Jason Green
Zurmo Team
Need support? Upgrade now


#11 ctala

ctala

    Newbie

  • Members
  • Pip
  • 4 posts

Posted 13 July 2012 - 01:06 PM

Jason,

I am not searching for relationships in the database, but is weird for me that there is none in a relational database. I think that redbean do the relatons by code ... ( I think ).

That is why it is weird for me :). Dont take me wrong, it's just the first time that I am working with redbean and maybe there are lots of things that I still need to understand.

#12 Jason

Jason

    Administrator

  • Administrators
  • 716 posts
  • LocationChicago

Posted 13 July 2012 - 03:10 PM

Jason,

I am not searching for relationships in the database, but is weird for me that there is none in a relational database. I think that redbean do the relatons by code ... ( I think ).

That is why it is weird for me :). Dont take me wrong, it's just the first time that I am working with redbean and maybe there are lots of things that I still need to understand.

Ok, let us know if you have more questions

Jason Green
Zurmo Team
Need support? Upgrade now


#13 sujaisd

sujaisd

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 05 November 2012 - 03:11 AM

I have been a Doctrine Develeoper for the past 3 years+ which I chose as it was close to Hibernate in Java.

I have worked with Both Doctrine 1 and Doctrine 2 but not with RedBean, but after evaluating a bit (I have not done 100%, and am not into any Doctrine vs Redbean war). I see RedBean is thin and can be easily ported with any product. Both of them have similar functionalities but in their own variations in the implementations. But I feel RedBean is a better choice for products which needs ORM ported with it internally.

Am not a RedBean expert as of now, I have given my feedback on a small overview with it, correct my mistakes if anyone finds mistakes.

Few informations about Doctrine
  • You have entities and they have relations in the PHPDoc with XDoclet Standards
  • When you try to populate database from entities, they create all relation ships and indexces as necessary
  • They help you get values from the relative tables as Object Mappings with help of proxies and they run queries when needed.
  • It uses persistent manager to manage transactions and execute DML Queries.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users