Articles tagged with "mongodb"X
Displaying 1-3 of 3 result(s).

Auto-update denormalized attributes with MongoDb and Yii2

Created 6 months ago by edoardo849Tips0 comments – viewed 3,081 times – ( +1 ) – version 2.0
You have different collections in MongoDb with de-normalized attributes. As you may know, due to its not-join nature, MongoDb tends to encourage repetition of the same value in different collections (de-normalization). In this MongoDb is opposed to a more SQL-like approach where you usually reference only the ID of the value with a foreign key.

MongoDb's embedded documents mapping for ActiveRecord in Yii2

Created 6 months ago by edoardo849How-tos1 comment – viewed 3,060 times – ( +2 ) – version 2.0
You are working with MongoDb and you have embedded documents in your collection that you want to easily map in your Model for CRUD operations.

Upload files in Yii2 with MongoDb and GridFs

Created 7 months ago by edoardo849How-tos0 comments – viewed 6,356 times – ( +6 ) – version 2.0
Uploading files in a webapp can be extremely tricky and sometimes the quickest way to do it is to store the file directly in the webserver or into a DNS (like Amazon S3) and then to save the link and the metadata inside a table in the DB. The thing is that you'll have to deal with file permissions, server storage, file management and so on (which is perfectly fine, by the way).