piyushcoader
Hi is there any way to connect mongodb with Ecto with latest version? I really need mongodb as a datastore. thanks in advance
I have gone through couple but this is not working well with latest release
-
GitHub - elixir-mongo/mongodb_ecto: MongoDB adapter for Ecto · GitHub
-
GitHub - elixir-mongo/mongodb: MongoDB driver for Elixir · GitHub
if anyone is using mongo in production with phoenix please share your experience
Thanks in Advance
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hi everyone,
I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding.
I sta...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
apply_graft/2 doesn’t rewrite an add_many sub-workflow’s deps on an add step. Grafted jobs cancel with “upstream job was deleted”
Version...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex










Most Liked- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
hubertlepicki
Putting aside my whole dislike towards MongoDB (caused by unfortunate experience of using it’s earl-ish versions), I do not think you can get to work MongoDB as a back-end for Ecto 2.0 just yet. The work is still work in progress, and looks like the guy over here still hasn’t given up hope on making it work with each other: [WIP] Support for Ecto 2.0 by ankhers · Pull Request #91 · elixir-mongo/mongodb_ecto · GitHub
Having said that, there’s nothing from stopping you from using mongo driver directly (2nd link). It’s nice enough I think.
hubertlepicki
I really doubt that this is true. Postgres can be configured to be very elastic and probably replace all cases where MongoDB can be used - with better result - with exception to keeping open cursors.
It may be as well that you do not need any of the above. You are in Erlang ecosystem in the end. Maybe you should consider some persistence solution like DETS if your data / use case allows that. But I can’t say more since I don’t know our use case
ericmj
Ecto translates between jsonb and elixir maps so you will be working with normal elixir maps in your templates.
Last Post!
Morganjackson
Sorry so keep bringing this up, but I’m still not sure I’m using this correctly.
I have an application with 20+ templates called blocks which can all potentially have different styles. They all share a “Block” schema but need a flexible way to add different styles which is why I thought jsonb would be the way to go.
Basically, I want my final template to look something like the pseudo code below but I’m still not sure the best way to save the data and then how to easily access it later?