Proposal: Add An in-memory data storage backend in Django

221 views
Skip to first unread message

Paolo Melchiorre (paulox)

unread,
Oct 20, 2022, 1:30:00 PM10/20/22
to Django developers (Contributions to Django itself)
Hi all,

there is a package that provide in-memory data storage backend, but it's now abandoned.

Having support for in-memory data storage could be very useful for Django itself and furthermore it would involve adding a small code with tests that do not justify the creation of a fork of that old package.

We are talking about this during the sprints at DjangoCon US 2023 in San Diego with Josh Thomas and Mariusz Felisiak proposed to us to ask here on this list.

What do you think about adding an in-memory data storage backend directly in the Django core?

Ciao,
Paolo

Adam Johnson

unread,
Oct 20, 2022, 2:50:36 PM10/20/22
to django-d...@googlegroups.com
+1 from me. Using in-memory storage is great for tests.

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/e0f6d509-20d7-4eef-b570-cc53611dca01n%40googlegroups.com.

David Sanders

unread,
Oct 20, 2022, 7:50:49 PM10/20/22
to django-d...@googlegroups.com
Hi,

I may be missing some context here but is this something distinctly different from setting SQLite to use in-memory storage [1]? 🤔


David

--

Tobias McNulty

unread,
Oct 20, 2022, 9:00:37 PM10/20/22
to django-d...@googlegroups.com
Hi,

I also may be missing some context, but is this the mentioned package? https://github.com/waveaccounting/dj-inmemorystorage

I have not used it, but it looks like a useful tool to have!

Tobias


Paolo Melchiorre

unread,
Oct 21, 2022, 12:36:04 AM10/21/22
to django-d...@googlegroups.com
Yes, the package is that one and Josh mentioned it in the related issue

But that package is unmantained and the feature that it provides can be very useful to have directly in the Django core.

Paolo Melchiorre

unread,
Oct 21, 2022, 12:40:10 AM10/21/22
to django-d...@googlegroups.com
Actually we're talking about an in memory data storage backend in addition to the filesystem storage

Jacob Rief

unread,
Oct 21, 2022, 2:47:57 AM10/21/22
to Django developers (Contributions to Django itself)
Big +1 from my side.
(Would indeed help me to write more portable unit tests.)

– Jacob

Joshua Thomas

unread,
Oct 21, 2022, 1:59:43 PM10/21/22
to Django developers (Contributions to Django itself)
Not to speak for Paulo, but I believe he meant using in-memory storage as a file storage backend, not data/database backend. 

Paolo Melchiorre

unread,
Oct 21, 2022, 2:04:24 PM10/21/22
to django-d...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages