go-together | GRPC IM 后端服务 - Grpc 学习项目,前端使用 Flutter 技术,后端使用 Go Grpc。
kandi X-RAY | go-together Summary
kandi X-RAY | go-together Summary
Grpc 学习项目,前端使用 Flutter 技术,后端使用 Go Grpc。.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- SelectBlogMenusByUrl selects a menu entries by url
- getWangbo returns a response from the songbo
- getIxugo fetches menu items from a url
- NewServer returns a new Server .
- Run starts an application
- LoadConfig loads config from configs
- _BlogServer_SayHello_Handler is an implementation of the BlogServer interface .
- getWebsite fetches the blog menu data for a given URL
- _BlogServer_GetList_Handler is an autogenerated interface implementation
- _ImServer_SayHello_Handler is an implementation of ImServer interface .
go-together Key Features
go-together Examples and Code Snippets
Community Discussions
Trending Discussions on go-together
QUESTION
Can I use mongoengine or djongo for ODM and pymongo for interaction with the db?
I've read these two about something related to my question:
Insert data by pymongo using mongoengine ORM in pyramid
Use MongoEngine and PyMongo together
But, I couldn't find what I'm looking for (I guess). So here's what I'm trying to find:
¿Does this practice affect the performance of my application? ¿How well recommended is it?
So, if it is recommended, and everything is right, ¿Do I need to put an extra layer of security or something?, because, I want to build an API using the serializations for models that django-rest-framework-mongoengine offers, and then do what I have to do in the view of the API endpoint.
It could be djongo or something like it, what I want is just an ODM for serializing, define a structure for the API and so on, use pymongo for queries, cause according to what I've been reading, mongoengine could make slower the interaction with the db
...ANSWER
Answered 2020-Apr-29 at 05:44The term "ORM" does not apply to MongoDB since MongoDB is non-relational. The proper term is "ODM" - object-document mapper.
Generally, a MongoDB ODM is built on top of a MongoDB driver. The functionalities of the ODM and the driver are complementary - the driver provides low-level database access and the ODM provides high-level features like schema, associations, callbacks.
If you want to use the high-level features, it makes sense to use an ODM. If you don't need any of those features and just want to perform basic CRUD operations, using a driver directly is more efficient. Some applications use both of these strategies depending on the operation that needs to be performed.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install go-together
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page