Re: How to Setup DjangoRestFrameWork with Mongo DB

2020-03-28 Thread Andrew C.
I highly recommend not using MongoDB. Sure, they can plaster a banner
saying “Google supports us” but many industry leaders have tried and failed
using it. It can’t store data that easily once you grow, making it unlikely
for usage in the future for employment by any startup or corporation and
for any realistic goal of scaling, too.

Use PostgreSQL’s NoSQL style with JSONB (JSONField) if you have to, and, if
you really need to index it, use a GIN index. Postgres is battle tested,
whereas Mongo is battle defeated.

I’d suggest you get to understand SQL vs. NoSQL first. Understand what’s
actually needed as an attribute and what isn’t. Most of the time, what you
think is non relational becomes relational. You can think partitioning and
sharding.

Sometimes you have to use NoSQL like with user profiles in which some
fields aren’t required. Use a JSONField, because I bet the REST of your
data is still relational.

Follow the general rules of why this works out. Not that people don’t use a
full NoSQL db like cassandra, but they use it for different use cases (like
throttling).

On Sat, Mar 28, 2020 at 4:28 AM VenkataSivaRamiReddy <
vennavenkat...@gmail.com> wrote:

> i tried but not getting
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAGiJVX02pxupk5p1%2B%2Br393icjT9VgtpPLqRCxK-1AV1oo9BfvQ%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJVmkN%3DDJXwTeA4YNY1HUUzMq9rBdkhNJtZFX-bOm23CH341ww%40mail.gmail.com.


Re: How to Setup DjangoRestFrameWork with Mongo DB

2020-03-28 Thread VenkataSivaRamiReddy
i tried but not getting

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGiJVX02pxupk5p1%2B%2Br393icjT9VgtpPLqRCxK-1AV1oo9BfvQ%40mail.gmail.com.


Re: How to Setup DjangoRestFrameWork with Mongo DB

2020-03-28 Thread Anh Nguyen
You can use Djongo or Django rest framework mongoengine.
But I highly recommend DON’T.

> On Mar 28, 2020, at 15:09, venna venkatReddy  wrote:
> 
> hey guys,
> 
> i am new to Django and Any one can guide me how to setup DjangoRestFrameWork 
> with Mongo DB,
> 
> My task is:
> 
> i need to create Api for data inserting and updating and delecting that data 
> must in mongodb, I previous work with sqlite3 and postgresql and mysql but 
> this is the first time to work with mongodb
> 
> 
> Please help, thanks
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users+unsubscr...@googlegroups.com 
> <mailto:django-users+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/03e4676f-8175-48a7-872c-e7e2223a8167%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/django-users/03e4676f-8175-48a7-872c-e7e2223a8167%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/52E35EC5-E7F0-4409-AAA0-1DF920D6420D%40gmail.com.


How to Setup DjangoRestFrameWork with Mongo DB

2020-03-28 Thread venna venkatReddy
hey guys,

i am new to Django and Any one can guide me how to setup 
DjangoRestFrameWork with Mongo DB,

My task is:

i need to create Api for data inserting and updating and delecting that 
data must in mongodb, I previous work with sqlite3 and postgresql and mysql 
but this is the first time to work with mongodb


Please help, thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/03e4676f-8175-48a7-872c-e7e2223a8167%40googlegroups.com.