Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
script optimization
#2
How long does it take to get the acl for a single firewall? I feel like 15 minutes is still a huge amount of time, unless you're spending most of that time just waiting for the device to respond.

For the mysql tables, are there indexes in place? How many rows? Over an hour just to add some records is also a little ridiculous. How many acl rules are you getting at once? Is it several thousand? When inserting, do you insert each individually, or have a single insert statement for all of them?

Before talking multiprocessing, I think it'd be worthwhile to figure out why it's so slow to begin with...
Reply


Messages In This Thread
script optimization - by gohanzdad - Feb-28-2017, 11:47 PM
RE: script optimization - by nilamo - Mar-01-2017, 12:53 AM
RE: script optimization - by gohanzdad - Mar-01-2017, 01:31 AM
RE: script optimization - by Ofnuts - Mar-01-2017, 08:04 AM
RE: script optimization - by nilamo - Mar-01-2017, 01:28 PM
RE: script optimization - by gohanzdad - Mar-01-2017, 03:39 PM
RE: script optimization - by gohanzdad - Mar-03-2017, 01:14 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020