Yii Framework Forum: Official MongoDB support - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Official MongoDB support Rate Topic: ***** 4 Votes

#1 User is offline   sivann 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 28-February 11

Posted 11 March 2011 - 09:29 AM

Native MongoDB would be great. It would make Yii the framework of choice for many academic and on the edge projects.
The new thing is expandability and interoperability and I can't thing of a better way to do it.
-S
3

#2 User is offline   adiasen 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 16-March 11
  • Location:Germany

Posted 16 March 2011 - 05:43 PM

View Postsivann, on 11 March 2011 - 09:29 AM, said:

Native MongoDB would be great. It would make Yii the framework of choice for many academic and on the edge projects.
The new thing is expandability and interoperability and I can't thing of a better way to do it.
-S


I agree, native mongoDB support would be great!
No risk no fun!
0

#3 User is offline   Haensel 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 444
  • Joined: 14-January 11
  • Location:Vienna (Austria)

Posted 30 April 2011 - 11:18 AM

I just wanted to add my thoughts to this:

For a long time I didn't know what to think about all the NoSQL/schemaless DB buzz as I was used to MySQL and never had any real problems with using it. But I am currently working on a project where I want users to be able to add attributes to objects on the fly. This sounds terrible from an RDBMS point of view (usually enabled with EAV modelling which is known to be awfully slow) but is a perfect example for the usage of schemaless databases like MongoDB.
I think that applications like that (crowd sourced and flexible) aren't a trend only but a new variant of designing applications as a whole.

I definitely think that adding an ActiveRecord like approach to connect to MongoDB, CoachDB or whatever would be highly beneficial for the whole Yii project. The only problem I see is that they all use completely different APIs as far as I know so adding DB-drivers could be a pain.
0

#4 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 01 May 2011 - 05:13 AM

Anything you need that the existing MongoDb extensions doesn't do?
extensions/?tag=mongodb

yiimongodbsuite is what you need.
"Less noise - more signal"
1

#5 User is offline   Haensel 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 444
  • Joined: 14-January 11
  • Location:Vienna (Austria)

Posted 02 May 2011 - 03:10 AM

View Postjacmoe, on 01 May 2011 - 05:13 AM, said:

Anything you need that the existing MongoDb extensions doesn't do?
extensions/?tag=mongodb

yiimongodbsuite is what you need.


I know and use this extension already and it is extremely useful and well written. But I personally think that this whole topic is too big to be handled by an extension only approach. Building your whole application on top of an extension can be pretty scary for some businesses I think.
The benefits of a core implementation would be official documentation, additional tests when a new version of Yii is released, a solid team behind it fixing bugs or whatever. With an extension you will always have the problem of different versions of the same thing or "key developers" abandoning the project etc.
0

#6 User is offline   JayRoe 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 22
  • Joined: 03-April 09

Posted 08 July 2011 - 03:26 AM

I agree with Haensel and I'd love to see official support for MongoDB.
0

#7 User is offline   ginus 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 29-January 10

Posted 19 July 2011 - 12:39 AM

if real,maybe the yii need refactor just because of so different between MongoDB and MySQL.
MySQL just for structured data focus on col.
MongoDB most like file system focus on row.
0

#8 User is offline   kernel 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 91
  • Joined: 22-November 10

Posted 29 July 2011 - 01:46 AM

Merge to core
0

#9 User is offline   julianm 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 04-January 12

Posted 06 March 2012 - 09:17 PM

I agree with Haensel, too. I'd love to see MongoDB native in Yii project.
If yiimongodbsuite is a good candidate, why not merging it with code, as suggested by kernel.
0

#10 User is offline   inteist 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 08-March 12

Posted 08 March 2012 - 05:06 PM

Would be nice... +1 to add to core!
0

#11 User is offline   tydeas_dr 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 158
  • Joined: 16-April 10
  • Location:Greece

Posted 21 March 2012 - 06:45 PM

Nosql is here to be tested. There is a buzz around it because ppl want to use it and I agree yii has to do something about it officially. It is not just mongod, there other nosql solutions out there.
There are key value storage, document based, bigtable solutions.
I dont want yii to adopt and merge an extension code or even think that way at all. What I want to see is a solid api supporting more than 1 solutions even if it not so featured with development happiness.
For example dao would be sufficient in the beggining. And by dao I mean a solid layer, with a consistent api that would give my the ability to transparently change from the one nosql to the other by changing the connection string and a little or no more effort.
in the other hand I am not sure how an activerecord could be usefull on something schemaless.
Follow me on twitter @dmtrsslvdr
Check my *new* blog @ tumblr
0

#12 User is offline   Bob G 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 13-July 12

Posted 14 September 2012 - 02:24 PM

+1 add to core.
0

#13 User is offline   binkabir 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 193
  • Joined: 25-July 10
  • Location:Abuja,Nigeria

Posted 18 September 2012 - 03:48 AM

i think it will be a great feature for 2.0 (adding mongodb into the core)
0

#14 User is offline   Andy Rusu 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 25-December 10
  • Location:Romania

Posted 01 November 2012 - 04:11 AM

I don't think it's important for Yii to "officially" support MongoDb (or other NoSQL databases) if, when Yii 2.0 comes out, I can replace the entire DB module with anything I want (written by me or otherwise) and that works seamlessly with the rest of the framework.

It's more important for the framework to be modular and have it's components interchangeable than support every technology (new or old), because people will build what they need and share it with the community.


Andy Rusu
Web Developer

Quote

A man's dreams are an Index to his Greatness.
0

#15 User is offline   fifik 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 13-March 12

Posted 10 June 2013 - 08:26 AM

Sorry, Andy, but I'm not so sure about this.
mongoDB as mySQL is a living project, which means it has to be maintained also in the code sometimes.
The problem is what to do if there are 10 extensions for using only mongoDB?
Which to use? Which one will be up to date all the time and compatible with the newest mongoDB specs?
Until you do not choose one project for an official, it can happen that in some time you will have to
- change the mongoDB extension which might be a stick in your head
- update existing yourself which you might not have time for

And that's only cause someone stopped to maintain his extension

F

View PostAndy Rusu, on 01 November 2012 - 04:11 AM, said:

I don't think it's important for Yii to "officially" support MongoDb (or other NoSQL databases) if, when Yii 2.0 comes out, I can replace the entire DB module with anything I want (written by me or otherwise) and that works seamlessly with the rest of the framework.

It's more important for the framework to be modular and have it's components interchangeable than support every technology (new or old), because people will build what they need and share it with the community.

0

#16 User is offline   michail 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 02-August 13

Posted 19 September 2013 - 11:54 AM

I'm want to write a query "

SELECT * FROM page WHERE keyphrases NOT LIKE '%fghjkl%' AND keyphrases LIKE '%abcde%'

" $criteria = new EMongoCriteria; $criteria->keyphrases('!=', new MongoRegex("/fghjkl/")); $criteria->addCond('keyphrases','==', new MongoRegex("/abcde/"));

$clients = PageMongo::model()->findAll($criteria);

then I get an error 27017: invalid regular expression operator

what to do?
0

Share this topic:


Page 1 of 1
  • 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