Re: [Django] #14845: Document connection-creation process

2023-07-28 Thread Django
#14845: Document connection-creation process
-+-
 Reporter:  Christophe Pettus|Owner:  Pradhvan
 |  Bisht
 Type:  New feature  |   Status:  assigned
Component:  Documentation|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Pradhvan Bisht ):

 * owner:  nobody => Pradhvan Bisht
 * status:  new => assigned


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701899d96d64e-ae3ac020-5a87-42c0-8fd7-27b4e18f4a28-00%40eu-central-1.amazonses.com.


Re: [Django] #14845: Document connection-creation process

2023-04-03 Thread Django
#14845: Document connection-creation process
-+-
 Reporter:  Christophe Pettus|Owner:  Akshat
 |  verma
 Type:  New feature  |   Status:  assigned
Component:  Documentation|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-

Comment (by Mariusz Felisiak):

 Replying to [comment:15 Akshat verma]:
 > Replying to [comment:14 Mariusz Felisiak]:
 > > Okay but I unable to get your comments. And due to lack of some
 information I did so
 > And one thing I want to say that the changes commit by me was quite
 genuine but I the place I made was wrong so you must suggest me the right
 file path in the  GitHub repository.

 Please don't edit my comments, you're behavior is really inappropriate. I
 left at least a few comments with gentle requests before I started
 cleaning up after you. If you want to contribute and need help you should
 start from [https://docs.djangoproject.com/en/4.2/internals/contributing/
 reading docs] and eventually asking questions on
 [https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels
 support channels]. Are you really going to work on 10 tickets at once?
 Again, I'd recommend picking one ticket and starting with that.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018746d284ae-8dadbc55-5052-4724-88eb-01b7583fafd2-00%40eu-central-1.amazonses.com.


Re: [Django] #14845: Document connection-creation process

2023-04-03 Thread Django
#14845: Document connection-creation process
-+-
 Reporter:  Christophe Pettus|Owner:  Akshat
 |  verma
 Type:  New feature  |   Status:  assigned
Component:  Documentation|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  0|  Needs documentation:  0
  Needs tests:  0|  Patch needs improvement:  0
Easy pickings:  0|UI/UX:  0
-+-
Changes (by Akshat verma):

 * owner:  nobody => Akshat verma
 * status:  new => assigned


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018746ccd8b8-c3b4335d-08dc-4aee-ab66-c713b08bb6cf-00%40eu-central-1.amazonses.com.


Re: [Django] #14845: Document connection-creation process

2023-04-03 Thread Django
#14845: Document connection-creation process
---+
 Reporter:  Christophe Pettus  |Owner:  nobody
 Type:  New feature|   Status:  new
Component:  Documentation  |  Version:  dev
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+

Comment (by Akshat verma):

 Replying to [comment:14 Mariusz Felisiak]:
 > Okay but I unable to get your comments. And due to lack of some
 information I did so
 And one thing I want to say that the changes commit by me was quite
 genuine but I the place I made was wrong so you must suggest me the rigth
 file path in the  GitHub repository.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018746c84837-3ba028ce-54cb-4a6e-95a0-5bed4a425cb4-00%40eu-central-1.amazonses.com.


Re: [Django] #14845: Document connection-creation process

2023-04-03 Thread Django
#14845: Document connection-creation process
---+
 Reporter:  Christophe Pettus  |Owner:  nobody
 Type:  New feature|   Status:  new
Component:  Documentation  |  Version:  dev
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+

Comment (by Mariusz Felisiak):

 Akshat, again, please stop to change ticket descriptions and put random
 information that is neither helpful nor related with the ticket.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018746813f36-db6e15fd-68a8-402b-9ada-7fe3bccf6cf1-00%40eu-central-1.amazonses.com.


Re: [Django] #14845: Document connection-creation process

2023-04-03 Thread Django
#14845: Document connection-creation process
-+-
 Reporter:  Christophe Pettus|Owner:  Akshat
 |  verma
 Type:  New feature  |   Status:  assigned
Component:  Documentation|  Version:  dev
 Severity:  Normal   |   Resolution:
 Keywords:   | Triage Stage:  Accepted
Has patch:  1|  Needs documentation:  1
  Needs tests:  0|  Patch needs improvement:  1
Easy pickings:  1|UI/UX:  1
-+-
Changes (by Akshat verma):

 * status:  new => assigned
 * cc: Akshat verma (added)
 * needs_better_patch:  0 => 1
 * easy:  0 => 1
 * owner:  nobody => Akshat verma
 * needs_docs:  0 => 1
 * has_patch:  0 => 1
 * ui_ux:  0 => 1


Old description:

> Currently, the actual database connection is created on-demand when a
> cursor is requested. This is great for standard use, but there are
> occasional uses where it would be handy to have the connection open
> before requesting a cursor (for example, if you are doing a raw SQL query
> using the cursor(cursor_factory=) syntax.
>
> The proposal here is to move the connection-creation mechanism to a
> separate public method that both the internal cursor-creation mechanism
> and a client of the connection object could call.

New description:

 Currently, the actual database connection is created on-demand when a
 cursor is requested. This is great for standard use, but there are
 occasional uses where it would be handy to have the connection open before
 requesting a cursor (for example, if you are doing a raw SQL query using
 the cursor(cursor_factory=) syntax.

 The proposal here is to move the connection-creation mechanism to a
 separate public method that both the internal cursor-creation mechanism
 and a client of the connection object could call.

 # in settings.py

 DATABASES = {
 'default': {
 'ENGINE': 'django.db.backends.postgresql',
 'OPTIONS': {
 'service': 'my_service',
 'passfile': '.my_pgpass',
 },
 }
 }

 #in  .pg_service.conf

 [my_service]
 host=localhost
 user=USER
 dbname=NAME
 port=5432

 #in  .my_pgpass

 localhost:5432:NAME:USER:PASSWORD

--

Comment:

 #changes by Akshat verma
 # in settings.py

 DATABASES = {
 'default': {
 'ENGINE': 'django.db.backends.postgresql',
 'OPTIONS': {
 'service': 'my_service',
 'passfile': '.my_pgpass',
 },
 }
 }

 #in .pg_service.conf

 [my_service]
 host=localhost
 user=USER
 dbname=NAME
 port=5432

 #in .my_pgpass

 localhost:5432:NAME:USER:PASSWORD

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018746762653-f62b9c1e-b1ca-4234-8558-55ef95e1708a-00%40eu-central-1.amazonses.com.


Re: [Django] #14845: Document connection-creation process

2022-03-30 Thread Django
#14845: Document connection-creation process
---+
 Reporter:  Christophe Pettus  |Owner:  nobody
 Type:  New feature|   Status:  new
Component:  Documentation  |  Version:  dev
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+

Comment (by dcontador):

 Whoever takes this should remember to document `close_old_connections`
 ([https://code.djangoproject.com/ticket/32589]).

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107017fd9ecf131-f85b9b2f-fac3-4cfb-8950-fc40721a275d-00%40eu-central-1.amazonses.com.


Re: [Django] #14845: Document connection-creation process

2021-03-25 Thread Django
#14845: Document connection-creation process
---+
 Reporter:  Christophe Pettus  |Owner:  nobody
 Type:  New feature|   Status:  new
Component:  Documentation  |  Version:  dev
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+
Changes (by GwynBleidD):

 * cc: GwynBleidD (added)


-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/061.ba92711a7ca411389e95bab469ac8cb8%40djangoproject.com.


Re: [Django] #14845: Document connection-creation process

2021-03-25 Thread Django
#14845: Document connection-creation process
---+
 Reporter:  Christophe Pettus  |Owner:  nobody
 Type:  New feature|   Status:  new
Component:  Documentation  |  Version:  dev
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+

Comment (by Carlton Gibson):

 #32589 was a duplicate ref documenting the need for calling
 close_old_connections in long-running management commands.

 Ostensibly this ticket here is about connection creation, but (a decade
 later) a general overview of the connection life-cycle would be a nice
 improvement.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/061.27cdda2cb9404d25adcf5e968d006175%40djangoproject.com.


Re: [Django] #14845: Document connection-creation process (was: Refactor backend connection-creation process)

2014-08-19 Thread Django
#14845: Document connection-creation process
---+
 Reporter:  Xof|Owner:  nobody
 Type:  New feature|   Status:  new
Component:  Documentation  |  Version:  master
 Severity:  Normal |   Resolution:
 Keywords: | Triage Stage:  Accepted
Has patch:  0  |  Needs documentation:  0
  Needs tests:  0  |  Patch needs improvement:  0
Easy pickings:  0  |UI/UX:  0
---+

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/061.c076c6f1e168bd176137edd79a94fddd%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.