#Remixjs + Mongodb driver

1 messages · Page 1 of 1 (latest)

sudden crag
#

I have previously used Remixjs + MongoDB + Prisma. But I don't really like the overhead prisma produces. I want to just use Remixjs and Mongodb.
There is a template to do it: https://www.mongodb.com/developer/products/mongodb/building-remix-applications/

Do does anyone know of any tutorial or guide to effectively use this?
And I really hope that remixjs and mongodb is much faster than remixjs, mongodb and prisma.

Thank you ..

crimson compass
#

If you want the basic mongodb just use their official driver.
Otherwise there's an ORM specified for mongodb.

#

If you've done MERN apps, this will look similar.

sudden crag
#

Otherwise there's an ORM specified for mongodb. can you suggest any? Prisma? I've used prisma and I'm disappointed by how it handles the table joins.

crimson compass
#

In MERN apps, mongoose was used to manage the db in your app

sudden crag
#

My guess is, using mongodb driver without any other layer for the database querying will have significant performance boost.

#

mongoose doesn't add it's own layer? I mean, does it also have it's query engine like Prisma?

crimson compass
#

In my opinion If you have a high degree of relations in your app just switch to SQL database.

crimson compass
sudden crag
#

Sure thank you ..I'll check their website.

copper rock
sudden crag
#

But does mongooes also have query engine like Prisma?

copper rock
#

I would use Mongoose rather than the mongodb driver but mostly because it has models

sudden crag
#

yes that's the reason I'm asking this question. Because with mongodb driver its hard to write and debug queries.
Now I'm stuck. between mongoose and prisma.

I read that Prisma has improved their performance with the latest release.

copper rock
#

I would use Mongooae since it’s specialized in Mongo

#

It should be faster too, since it doesn’t need to support multiple DB engines

dusty knot
#

As a former Mongo employee and current Prisma user (sql), I would also suggest Mongoose. It has the best overall support for mongo.

sudden crag
dusty knot
#

That's my preferred. I use CockroachDB which is Postgres compatible. Prisma just did some query optimizations for Postgres and CockroachDB

shell rose
#

I think prisma has about the best DX of anyone right now, so whether to use them matters a bit about how much you care about that

Drizzle is really fast and nice with SQL but it’s not (yet) as easy to use as Prisma

sudden crag
#

I'm sorry, what is DX? I'm new to all these!

shell rose
#

Sorry, developer experience

sudden crag
#

DX like UX 😛

#

Oh ok ok ..

shell rose
#

Yeah

sudden crag
#

But what about the performance issue? They have their query engine inbetween your application and database.
Especially, for people using noSQL. Ex: MongoDB.

shell rose
#

Their joins are less performant than regular queries but that isn’t always an issue, it’s still more than fast enough for any app i build

#

And I’m hoping that by the time that changes, drizzle will have their relational query format close enough to feature parity that I can switch to them

sudden crag
#

ok fair enough.

Thanks for all the information. I'l have to spend some time and make the decision for my needs now. Thank you.

#

I used Prisma 4.xx and now want to switch to Prisma 5 and use their JSON engine or whatever, which is better than postgres engine. But I'm scared of the migration, since it's a production app!!

shell rose
#

Yeah prod migrations are scary especially if you can’t have downtime

sudden crag
#

exactly.

#

They made some unnessesory syntax changes! At least I feel like that.

#

That's the reason I'm trying to be very careful while choosing these tools for the new project.

shell rose
#

Does it require a full database migration or is it just the code that has to change? I assumed code

sudden crag
#

Prisma is very easy to use. Development time decreases drastically for me!!

#

it's just the code.