Hi, Le jeudi 23 juin 2016, Aymeric Augustin a écrit : > On 23 Jun 2016, at 15:40, Tim Graham <timogra...@gmail.com> wrote: > > Marc said, "I'm happy for JSONField to be made a core field on the > > condition that it's underlying support is more than a text blob on all > > our main databases. It sounds like this will soon be the case.” > > In order to discourage people from using JSONField on databases where it > cannot be implemented efficiently i.e. not with a text blob, the best > solution may be to add it to Django and raise a warning when it’s > misused.
Why would you want to discourage people? In the recent thread "Extending JSONField serialization", you said yourself that the use-case for a JSONField is clearly to store and retrieve data and not to make queries on it with smart lookups. So while I would certainly want the generic JSONField to use the most appropriate field type for each database, I don't think we have to wait until all major databases have the required support. And we should certainly not throw warnings if you use it on a database that doesn't have any special JSON support since that is one of the selling point of this generic module! The generic JSONField should define the appropriate interface and have all the logic to easily customize the behaviour for each database, but it's also fine if it starts with using plain TEXT fields on everything except MySQL/Postgres (which are the two databases where there are pre-existing JSONField implementation apparently). What would be the next logical step if I want to work on this? Is there a need for a DEP to discuss the interface provided by this field? Cheers, -- Raphaël Hertzog ◈ Writer/Consultant ◈ Debian Developer Discover the Debian Administrator's Handbook: → http://debian-handbook.info/get/ -- 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-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/20160624070136.GA22662%40home.ouaza.com. For more options, visit https://groups.google.com/d/optout.