Hi Markus CTAS can be useful in some cases, but I can't imagine how we'd fit it into the Django ORM nicely. There wouldn't be a model for the correspondingly created table. Have you got a suggestion for the way you'd like to see it working?
Thanks, Adam On Wed, 24 Apr 2019 at 14:03, Markus Elfring <markus.elfr...@web.de> wrote: > Hello, > > I contributed the feature request “Creating database tables from queries > based on ORM API” <https://code.djangoproject.com/ticket/30369>. > Today it was requested to continue the clarification for mentioned > software aspects in this forum. > > Can the support for the SQL standard statement “CREATE TABLE AS SELECT” > (CTAS) grow besides the application of materialized views (or snapshots)? > > By the way: > This functionality is supported by the class library “SQLAlchemy 1.3.2” > <https://groups.google.com/d/msg/sqlalchemy/5-6O-Pwzh4A/66eIrzdzCwAJ> (to > some degree). > > Regards, > Markus > > -- > 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/ac948a00-2a5e-445a-bffd-80172210378e%40googlegroups.com > <https://groups.google.com/d/msgid/django-developers/ac948a00-2a5e-445a-bffd-80172210378e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Adam -- 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/CAMyDDM1pab%2BJJuQcohMVDNjOj5_QTLUQDX6Mzkc_LPUM6pOcbw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.