mirror of
https://gitlab.crans.org/bde/nk20-scripts
synced 2025-06-29 17:51:08 +02:00
add timed decorator for perf tracking
This commit is contained in:
@ -22,7 +22,7 @@ class Command(ImportCommand):
|
||||
|
||||
def add_arguments(self, parser):
|
||||
pass
|
||||
|
||||
@timed
|
||||
@transaction.atomic
|
||||
def import_activities(self, cur, chunk_size):
|
||||
cur.execute("SELECT * FROM activites ORDER by id")
|
||||
@ -58,6 +58,7 @@ class Command(ImportCommand):
|
||||
bulk_mgr.done()
|
||||
return MAP_IDACTIVITY, MAP_NAMEACTIVITY
|
||||
|
||||
@timed
|
||||
@transaction.atomic
|
||||
def import_activity_entries(cur):
|
||||
bulk_mgr = BulkCreateManager()
|
||||
|
Reference in New Issue
Block a user