Modify

Opened 3 years ago

Closed 6 weeks ago

#11288 closed enhancement (fixed)

Convert to .executemany() where appropriate

Reported by: ChrisNelson Owned by: ChrisNelson
Priority: low Component: TeamCalendarPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description (last modified by rjollos)

As noted in comment:3:ticket:11131 and pep:0249, .executemany() is preferred over passing a list of tuples. This can clean up a number of database accesses, potentially making them more portable and readable.

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by rjollos

Sorry, it's not a duplicate, I just noticed #11287 is different! I had figured it was the mysterious submit once, get two tickets issue that we see from time to time.

Last edited 3 years ago by rjollos (previous) (diff)

comment:2 Changed 6 weeks ago by rjollos

  • Description modified (diff)

comment:3 Changed 6 weeks ago by rjollos

  • Resolution set to fixed
  • Status changed from new to closed

In 16051:

1.0.0dev: Use Trac 1.0 database API

  • Create tables on Environment upgrade (fixes #4115)
  • Store dates as UTC timestamps (fixes #9925)
  • Use executemany (fixes #11288)

This change is not compatible with the previous version.
Please open a ticket if you need help on an upgrade path.

Fixes #9908.

Add Comment

Modify Ticket

Action
as closed The owner will remain ChrisNelson.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.