Re: Recomended front ends?

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>, "Peter J(dot) Holzer" <hjp-pgsql(at)hjp(dot)at>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Recomended front ends?
Date: 2019-08-27 15:16:08
Message-ID: a4baded5-fe45-bb7b-6c0a-264fef7af5d8@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 8/27/19 8:04 AM, Daniele Varrazzo wrote:
> On Sun, Aug 11, 2019 at 7:49 PM Peter J. Holzer <hjp-pgsql(at)hjp(dot)at> wrote:
>
>> Django lets you use "unmanaged" tables, but it is quite noticeable that
>> this isn't the primary use case.
>
> It isn't, but it's the best way to use Django for database-literate
> people. It's enough to ignore the Django sale pitch of the database as
> a replaceable element and just assume Postgres. In Docker times you
> don't need SQLite to create a poorly representative "development
> database".

Django takes Postgres as it's reference database which makes things
easier, especially when you add in
contrib.postgres(https://docs.djangoproject.com/en/2.2/ref/contrib/postgres/)

>
> You can just ignore the Django ORM for the whole data-definition layer
> and migrations: you can have your database schema, with comments, in
> your source code, with strict control of what's in the db (exotic
> index definitions, exclusion constraints, writable views...) and only
> use the ORM to read and manipulate data, as long as the Django model
> "resembles" the database table.
> Schema migrations are easy to deal with using SQL patches [1], and
> complete, unlike any Model-based migration system.

+1

>
> Using the Django ORM to create complex queries is a joy (especially
> nesting subqueries), and you don't lose all the other Django
> facilities (decent auth model, decent CRUD interface, customisation
> when "decent" is not enough).
>
> [1] https://gist.github.com/dvarrazzo/4161070
>
> -- Daniele
>
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Holtgrewe, Manuel 2019-08-27 15:27:05 RE: [ext] Re: Pointers towards identifying bulk import bottleneck (walwriter tuning?)
Previous Message Jeff Janes 2019-08-27 15:14:24 Re: [ext] Re: Pointers towards identifying bulk import bottleneck (walwriter tuning?)