Yii Framework Forum: Mongo DB (document based databases) - Yii Framework Forum

Jump to content

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

Mongo DB (document based databases) Rate Topic: ***** 1 Votes

#1 User is offline   imehesz 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 708
  • Joined: 13-June 09
  • Location:Jacksonville, FL

Posted 30 October 2009 - 09:53 AM

hello Devs,

Are you planning to implement document based database support, like Mongo DB?

http://www.mongodb.o...splay/DOCS/Home

thanks,
--iM
It’s done, the great act of creation.
The maker rests. The wheel’s in motion.
-- Imre Madách

check out Yii Theme Factory at http://yii.themefactory.net
0

#2 User is offline   creocoder 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 198
  • Joined: 09-March 09
  • Location:*.php

Posted 27 December 2009 - 07:35 AM

I join a question. It is necessary as the breath of life.
No good, no bad, only consequence.
0

#3 User is offline   ekerazha 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 526
  • Joined: 10-October 08
  • Location:European Union

Posted 27 December 2009 - 09:58 AM

View Postcreocoder, on 27 December 2009 - 07:35 AM, said:

I join a question. It is necessary as the breath of life.

Why?
Yii user #37
0

#4 User is offline   creocoder 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 198
  • Joined: 09-March 09
  • Location:*.php

Posted 29 December 2009 - 03:33 AM

to ekerazha
For example for creation of catalogues of the goods with possibility of search in any parametres. At use of relational databases it is reached only by means of EAV that badly affects productivity of such applications. MongoDB is not relational DB, it's modern schemaless DB.

Whether here it will be essentially not so important support MongoDB or not, it can quite be and support CouchDB. But I consider that one of objective DB given in Yii should be.

to quang
What do you think of it?
No good, no bad, only consequence.
0

#5 User is offline   mintao 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 62
  • Joined: 02-December 09
  • Location:Munich, Germany

Posted 25 January 2010 - 06:19 PM

I agree to imehesz and CreoTek - I just spent a few hours checking out mongoDb and I'm really impressed about how easy and fast it is. As you can simply store an array, object, string, number or binary without converting it into a defined schema. It saves a lot of time to convert and restore the data. I'm not sure if it's really necessary to write an extra adapter for it.
Did anybody already played around with yii and mongoDB?
0

#6 User is offline   Y!! 

  • Advanced Member
  • Yii
  • Group: Yii Dev Team
  • Posts: 978
  • Joined: 18-June 09

Posted 25 January 2010 - 06:29 PM

But how fast is it? Can it be used as a full replacement for eg MyISAM/InnoDB tables? Does it support fulltext search?

Other than that Kohana and CakePHP have it, so Yii needs it as well if it's really that great. :)
0

#7 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,739
  • Joined: 17-January 09
  • Location:Russia

Posted 26 January 2010 - 05:57 AM

mintao
I did. Even started to create extension. But because of lack of time it's development was suspended.

There are some problems integrating it into Yii. Main problem is that main concept is very different.

Y!!
Very fast. Yes, it can be MySQL replacement, but you need to think different when working with it. Yes, fulltext search is supported.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#8 User is offline   mintao 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 62
  • Joined: 02-December 09
  • Location:Munich, Germany

Posted 26 January 2010 - 02:34 PM

@Y!!
... and zend and symfony2 too ;) You may want to check out the benchmark tests. Really impressive, even if it's only half that fast.

@samdark
Damn, I'm just a newbie in Yii, but in my naive opinion there's not too much to convert due to the fact that it's in "simple json format". :blink:
0

#9 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,739
  • Joined: 17-January 09
  • Location:Russia

Posted 26 January 2010 - 02:41 PM

mintao
True if not binding it to models and just use arrays.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#10 User is offline   mintao 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 62
  • Joined: 02-December 09
  • Location:Munich, Germany

Posted 26 January 2010 - 05:10 PM

View Postsamdark, on 26 January 2010 - 02:41 PM, said:

mintao
True if not binding it to models and just use arrays.


I knew I forgot sth :rolleyes:
0

#11 User is offline   mintao 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 62
  • Joined: 02-December 09
  • Location:Munich, Germany

Posted 29 January 2010 - 04:34 AM

Btw. have your already checked out the list of sites using mongo db? There you can find some really big ones like "source forge" or "github", "EA" or the "New York Times".

Click here to see the full listing
0

#12 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,739
  • Joined: 17-January 09
  • Location:Russia

Posted 29 January 2010 - 04:44 AM

Yep. Already did one project on MongoDB but w/o Yii (in plain PHP). It saved weeks because it's schemaless.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#13 User is offline   vikkesz 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 19-February 10

Posted 19 February 2010 - 07:48 AM

Is Mongo DB going to be supported in near future?
0

#14 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,739
  • Joined: 17-January 09
  • Location:Russia

Posted 19 February 2010 - 10:52 AM

Don't expect it too soon.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#15 User is offline   mintao 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 62
  • Joined: 02-December 09
  • Location:Munich, Germany

Posted 19 February 2010 - 12:34 PM

Just wrote a little Mongo-Interface for yii-loggin (trace, info, warning and error as separat "tables" ). Didn't expect that it is that easy ;)

@samdark:
Do you already have sth to use as base for a mongodb adapter?
Maybe some enthusiasts (me included) could help together?!
0

#16 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,739
  • Joined: 17-January 09
  • Location:Russia

Posted 19 February 2010 - 12:48 PM

Yes, I do have a lot of code that is something similar to Yii AR but uses MongoDB. The bad thing it's only ⅓ done.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#17 User is offline   mintao 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 62
  • Joined: 02-December 09
  • Location:Munich, Germany

Posted 25 February 2010 - 04:31 PM

maybe we can complete the rest together?
0

#18 User is offline   samdark 

  • Having fun
  • Yii
  • Group: Yii Dev Team
  • Posts: 3,739
  • Joined: 17-January 09
  • Location:Russia

Posted 25 February 2010 - 04:37 PM

Maybe, I've stucked with API itself in the first place. If you are ready to review this alpha state code and maybe finish it, I'll commit it to http://code.google.com/p/yiiext/ and will give you write access to it.
Yii 1.1 Application Development Cookbook

Enjoying Yii? Star us at github: 1.1 and 2.0.
0

#19 User is offline   mintao 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 62
  • Joined: 02-December 09
  • Location:Munich, Germany

Posted 25 February 2010 - 04:50 PM

Great! Thank you.
0

#20 User is offline   imehesz 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 708
  • Joined: 13-June 09
  • Location:Jacksonville, FL

Posted 03 March 2010 - 12:23 PM

Hey hey hey

I know it's not Yii (actually it's not even PHP) but here is a great introductory video about MongoDB by a Hashrocket dude (Ruby & Rails peeps)

http://vimeo.com/9864311

--iM
It’s done, the great act of creation.
The maker rests. The wheel’s in motion.
-- Imre Madách

check out Yii Theme Factory at http://yii.themefactory.net
0

Share this topic:


  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users