Optimise generateSampleData by ~10x

Does remove reversion creation for now...
This commit is contained in:
2021-02-01 13:53:58 +00:00
parent 87caab6c8e
commit 11db880ac3
6 changed files with 282 additions and 251 deletions

View File

@@ -1,11 +1,14 @@
from django.core.management import call_command
from django.core.management.base import BaseCommand
import time
class Command(BaseCommand):
help = 'Adds sample data to use for testing'
can_import_settings = True
def handle(self, *args, **options):
begin = time.time()
call_command('generateSampleRIGSData')
call_command('generateSampleAssetsData')
end = time.time()
print(f"Total runtime of the program is {end - begin}")